views:

31

answers:

0

Is there a way to recover the last generated auto_increment identifier generated by an insert when using Hibernate ?

I know from my php background that you can get this information by way of a function call like mysql_insert_id(). I'm operating in grails and using HQL to get a performance boost on some insert operations, but I need to be able to recover the ids of the rows I'm directly inserting to do that...