aspose 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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EntityManager interface persist Method