Why don't my Toplink descriptors reflect the Java Code in the structure panel in JDeveloper? -
i learning oracle adf, including toplink orm. well, think toplink orm, correct me if wrong. added connection sqlite database, , generated bunch of java class. using chinook example database.
the wizard did not found foreign key mapping, tried adding one-to-many relationship between artist
class , album
class. added list<album>
field in artist
class.
public class artist implements serializable { // existing fields, default constructor , get/set omitted //... private list<album> albums; public artist(int artistid, string name, /* added */ list<album> albums) { this.artistid = artistid; this.name = name; this.albums = albums; } //... public list<album> getalbums() { return this.albums; } public void setalbums(list<album> albums) { this.albums = albums; } }
i tried told toplink album list had 1 many relationship album elements. when opened toplink mapping , tried edit descriptor, new field not present in "structure" panel. tried looking refresh button, found none. there no "add field" either. googled crazy , did not found anything. strange thing is, restarted jdeveloper, , albums
field there, , able set one-to-many relationship on it...
so really, question : there way make field appear without restarting jdeveloper? old pretty fast.
the problem disappeared after few reboot. bug in jdeveloper. solution classic "three r" of computer troubleshooting.
- restart jdeveloper, toplink structure panel reflect java code
- reboot computer.
- reinstall jdeveloper
inconvenient... works.
Comments
Post a Comment