I am using JPA entityManager to save data. DB Connection is made through Hibernate.
The problem is that when I am saving the data I want to get back the primary key.
the problem can be easily understood just by looking at the code and the comment.
In the orm-maping.xml