geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iliya <il...@etprom.ru>
Subject CMP auto increment and ejbPostCreate
Date Sat, 08 Jul 2006 10:35:18 GMT
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.


Mime
View raw message