Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i have JPA code inside an EJB jar, will that be deployed as a bean? As i understand, JPAs work in J2SE environments too? Other than EJB, is there any JPA implementation from Sun?

PS: Am confused between EJB3/JPA/Hibernate. Please clarify.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there seem to be some confusion here

First, JPA is not beans. JPA is a specification about data persistence. There are no beans, but what is called "Entities". Entites are accessed via an entity manager. It can be used on a EJB3 container or even in J2SE. Again, JPA is a specification. It is implemented by a few JPA containers, like Hibernate or Toplink.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic