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 EJB3 or 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 "EJB3 or hibernate" Watch "EJB3 or hibernate" New topic
Author

EJB3 or hibernate

Kalvinder Kumar
Greenhorn

Joined: Jun 05, 2007
Posts: 9
Hi I am new to Persistence. I want to use ORM in my project and i want to use JPA. As i am new, i am bit confused whether to use EJB3 entity beans or hibernate. I know both follow JPA. Can i use ejb3 entity beans following jpa without any need of hibernate or i need to use hibernate too. Someone told me that if i am using entity beans 3 still i have to use EntityManager implementation of JPA provided by Hibernate. please help.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Kalvinder, please check your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Can i use ejb3 entity beans following jpa without any need of hibernate

Yes, but if you don't use Hibernate's JPA implementation you'll need to use someone elses. JPA is a standard that providers implement, not a persistance mechanism in itself.
Kalvinder Kumar
Greenhorn

Joined: Jun 05, 2007
Posts: 9
Thanks a lot, Paul. It helped
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You are welcome
 
 
subject: EJB3 or hibernate
 
Similar Threads
EJB3 Entity Beans or Hibernate 3.2
EJB3 and JPA
JPA v/s Hibernate
EJB3 deployment issue
EJB3 and JPA