File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes EntityManager interface persist Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "EntityManager interface persist Method" Watch "EntityManager interface persist Method" New topic
Author

EntityManager interface persist Method

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi , the below is a coding that will be responsible to persist the Customer Entity to the DataBase.




Can anybody please tell me How EntityManager Persist method is working as em is not initialized.


Save India From Corruption - Anna Hazare.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

sorry i didn't see the @PersistenceContext annotation. which is doing all the actions here behind the scenes.
 
wood burning stoves
 
subject: EntityManager interface persist Method