views:

4401

answers:

3

Is it ok to take it from Glassfish project ( glassfish-persistence-api) or may be there is a Hibernate jar?

+3  A: 

hibernate.jar and hibernate-entitymanager.jar contains only the packages org.hibernate.*. So you should take it from the Glassfish project.

Jerrish Varghese
+2  A: 

If you are developing an OSGi system I would recommend you to download the "bundlefied" version from Springsource Enterprise Bundle Repository.

Otherwise its ok to use a regular jar-file containing the javax.persistence package

Schildmeijer
Templar
+4  A: 

You can use the ejb3-persistence.jar that's bundled with hibernate. This jar only includes the javax.persistence package.

alves