Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hinernate and EJB 3.0 entities comparison

 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I have absolutely no idea about Hibernate so sorry if this is a very silly question. Is the purpose of EJB3.0 entities and Hibernate are same. If yes then which is better to use?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3 Entities is now called JPA, JPA is just a specification. So the question then lies in which implementation of that specification are you going to use. Hibernate implements JPA, so does TopLink.

In the cases of those two products, they are also more than just JPA. Meaning they also have a lot more implementation that goes beyond the specification. The JPA spec does not cover every single scenario you might come across, which requires you to use the products specific stuff.

Hope that helps clear things up. It is not an either or question.

Thanks

Mark
 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Thank you so much for your reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic