openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgi Naplatanov <go...@oles.biz>
Subject Re: Setting Extended Persistence Context
Date Thu, 27 Mar 2008 17:00:37 GMT
Hello, Michael,

You are right, it's my fault, but I want to switch persistence context
(Transaction/Extended) for some tests and have not luck with the example
from OpenJPA documentation.

Best regards
Georgi

Michael Dick wrote:
> Hi Georgi,
> 
> By default all application managed EntityManagers are extended, so you
> shouldn't have to do anything.
> 
> Are you seeing different behavior with OpenJPA?
> 
> -Mike
> 
> On Thu, Mar 27, 2008 at 2:40 AM, Georgi Naplatanov <gosho@oles.biz> wrote:
> 
>> Hello, everybody.
>>
>> How I can change context to "Extended Persistence Context" outside a EJB
>> container ?
>>
>> The example 3.1 of OpenJPA documentation don't compile due the error
>>
>> "em = factory.createEntityManager(PersistenceContextType.EXTENDED) ;
>>
>> The method createEntityManager(Map) in the type EntityManagerFactory is
>> not applicable for the arguments (PersistenceContextType)"
>>
>> Best regards
>> Georgi
>>
> 


Mime
View raw message