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 <[EMAIL PROTECTED]> 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
>>
> 

Reply via email to