This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
this is umbrella task for derived id issues/enhancements/support realization.
Created attachment 102057 [details] sample project-1 Case: parent have simple key, dependent reference parent itself.
sample 1 have next issues: 1. add some logic to the application, execute tables will be created by eclipselink. 2. in new project use entities from db to generate entities. - this entities will not use derived id, this part need improvemnt in jpa2.0 environment. - there are issues with jsf from entity (for newly generated entities), it will have bidirectional relationship for fk, also id and fk are not binded and you can try to create wrong entity(but it will fail). Fisrt may be also separate issue, but both can be addressed by generation of entities with derived id.
190482 have more complex derived ids sample and it's good to support entity with derived ids->db tables->entities with derived ids in this case also.