You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Iliya <il...@etprom.ru> on 2006/07/08 12:35:18 UTC

CMP auto increment and ejbPostCreate

Hello !!!

I have MySQL DB with table A (for example) and it has auto increment 
primary field `id`. How can I get value of `id` in ejbPostCreate method 
in CMP EJB? I have correct assignment of `id` just after ejbPostCreate. 
As I think ejbPostCreate is a right place for creating child EJB, but 
without primary key of parent EJB I can't create child.