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.

Bug 190411

Summary: Derived ids support
Product: javaee Reporter: Sergey Petrov <sj-nb>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: pjiricka
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on: 190482    
Bug Blocks:    
Attachments: sample project-1

Description Sergey Petrov 2010-09-17 10:17:44 UTC
this is umbrella task for derived id issues/enhancements/support realization.
Comment 1 Sergey Petrov 2010-09-17 10:22:20 UTC
Created attachment 102057 [details]
sample project-1

Case: parent have simple key, dependent reference parent itself.
Comment 2 Sergey Petrov 2010-09-17 10:26:54 UTC
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.
Comment 3 Sergey Petrov 2010-09-21 14:02:27 UTC
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.