Hello friends,
I am creating a small database driven web application using Hibernate and MySQL.
I have a table created with the first column as
PRIMARY KEY and
AUTO_INCREMENT constraint.
All I want is to get the last updated / inserted records id from the table using
SELECT LAST_INSERT_ID().
I was able to do this by simple
JDBC coding, but I am not able to think how to do it using Hibernate as I am new to it.
Is there any other way to do it???
Any small hint or suggestion is awaited...
Thanks All.