Wednesday, April 28, 2010

[Java] Get primary key of newly inserted record in JPA

 

Hello !!

We have to insert data in Multiple Tables Using JPA .
means Using Entity Manager's methods .
like persist() etc..

We are facing problems that how can we get primary key's value of newly
inserted record?

so please give solution to get Primary key of just last inserted
record.

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
.

__,_._,___

No comments:

Post a Comment