quality@glassfish.java.net

Question to engineers - JPA integration

From: Adam Bien <abien_at_adam-bien.com>
Date: Sun, 21 Sep 2008 15:51:41 +0200

Hi All,

I'm just wondering, whether the change of the JPA provider (e.g. to Hibernate) requires specific steps. Does GF rely on JPA API (e.g. EntityManager) only, or is dependent on the implementation (SPI) as well?

The EntityManager has to enlist to current transaction - does it happen transparently (after setting the provider into the classpath and changing the persistence.xml)?

thank you in advance,

adam