• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate in EJB2 and EJB3

 
Nagamalini Pampati
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I read that "Hibernate is used for persistence in EJB2 and in EJB3 we have JavaPersistence API for persistence" .. that means we cant use hibernate in ejb3... Is this true?Please help me out in this.

Thanks,
Malini
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Hibernate with EJB3 if you like. There is no technical restriction.

(Its always useful to quote your sources when asking for an explanation. Taken out of context its hard to explain what the writer was aiming for. )
 
Joe Harry
Ranch Hand
Posts: 10112
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate actually implements from JPA. So when you work on Hibernate it means that you are already into JPA.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic