quality@glassfish.java.net

Re: Question to engineers - JPA integration

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Mon, 22 Sep 2008 11:06:54 -0700

Hi Adam,

>Does GF rely on JPA API (e.g. EntityManager) only, or is dependent on
the implementation (SPI) as well?
GlassFish only relies on JPA APIs

>The EntityManager has to enlist to current transaction - does it
happen transparently (after setting the provider into the classpath and
changing the persistence.xml)?
This happens transparently for EclipseLink, TopLink, Hibernate and OpenJPA.

Let me know if you have more questions.

Thanks,
Mitesh

Sherry Shen wrote:
> Hi Adam,
>
> Mitesh has a blog about using Hibernate as a persistence provider with
> Glassfish v2.
> http://blogs.sun.com/GlassFishPersistence/#use_hibernate_as_a_persistence
> I will contact him to see if v3 prelude support Hibernate or
> if he can answer your rest questions.
>
> Thanks!
>
> Sherry
> Adam Bien wrote, On 9/21/2008 6:51 AM:
>
>> 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
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>