|reading new primary key of inserted object [message #641362]
||Thu, 25 November 2010 03:18
Registered: October 2010
We use an Oracle 10g database and EclipseLink 2.1.1, without JPA.
When i insert a new object into the database with the UnitOfWork-Object by calling registerNewObject and commit, the primary key (NUMBER) is generated with a database sequence called by a database trigger on insert action.
The question is:
How can i read the new generated primary key back to my application???
i'm a bit confused about this. Any ideas or hints how this works?
Powered by FUDForum
. Page generated in 0.03153 seconds