ejbCreate() method return primary key genereted by database
843829Feb 25 2004 — edited Jun 9 2005Hello Everyone,
I have entity CMP EJB that maps MySQL database table, which is set to asign Primary key (integer) to new entries automatically by using AUTO_INCREMENT. The problem is ejbCreate(..) method, which returns primary key. My question is: how to make it return primary key generated by database?
Thanks