views:

42

answers:

1

Hi All,

Can I use newest version of hibernate 3.5 (3.5.0-3.5.2) as JPA1 provider with EJB3.0 on Glassfishv2?

I tried, but hibernate 3.5 required JPA2 spec and obviously this did not work with GFv2.

Thanks, Anton

+1  A: 

I don't think it is. As you pointed out, Hibernate Entity Manager 3.5 implements JPA 2.0 interfaces (like EntityManagerFactory, EntityManager, PersistenceUnitInfo) which have new methods. If you want a JPA 1.0 implementation, use Hiberante EM 3.4.0.GA.

To be honest, even if it was possible, I don't get the point. What parts of Hibernate 3.5 would you like to use that you don't get in Hiberante Core 3.3.2.GA and Hibernate Entity Manager 3.4.0.GA?

Update: To use Hibernate as JPA 1.0 persistence provider in GlassFish v2, have a look at this previous question (check all answers).

Pascal Thivent
Pascal, thanks for your response. I am more concerned about support of hibernate as JPA1 provider rather than new features of 3.5.
Anton
@Anton I've added a link to a previous answer about Hibernate and GlassFish v2. But I'm not sure to understand what you mean by *support*.
Pascal Thivent
@Pascal By support I mean further development,bugfixing of hibernate as JPA1 provider.
Anton
@Anton I see. Officially, Hibernate EM 3.4 is still supported.
Pascal Thivent