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 - Derived ids support
Summary: Derived ids support
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on: 190482
Blocks:
  Show dependency tree
 
Reported: 2010-09-17 10:17 UTC by Sergey Petrov
Modified: 2010-09-21 14:02 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
sample project-1 (20.91 KB, application/zip)
2010-09-17 10:22 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.