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 Entity manager in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Entity manager in Hibernate" Watch "Entity manager in Hibernate" New topic
Author

Entity manager in Hibernate

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 618
What is the use of Entity Manager in Hibernate?


kunal
Ran Pleasant
Ranch Hand

Joined: Jan 16, 2003
Posts: 75
Kunal Lakhani wrote:What is the use of Entity Manager in Hibernate?


Hibernate implements the JPA API and if you are doing any EJB 3.0 entity beans on JBoss you are actually using Hibernate. Use the JPA Entity Manager if you are moving existing JPA code to Hibernate or if you must use the JPA API, otherwise I say just use the regalar Hibernate sessions. I recently move several EJB 3.0 entity beans from JBoss to a Spring/Hibernate enviornment without a single problem.

Ran


Ran
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity manager in Hibernate
 
Similar Threads
Pessimistic locking Hibernate Entity Manager
Best practices
Is hibernet an upcoming technology
difference between session and entitymanager
EJB3 org.hibernate.LazyInitializationException:failed to lazily initialize a collection of role