You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jean-Louis MONTEIRO <je...@atosorigin.com> on 2010/03/18 16:49:18 UTC

Re: openejb + jpa 2.0 (hibernate)

Christian,

I created a JIRA  https://issues.apache.org/jira/browse/OPENEJB-1236
https://issues.apache.org/jira/browse/OPENEJB-1236 

Jean-Louis


Christian Bourque wrote:
> 
> Ok thanks Jean-Louis!
> 
> On Thu, Jan 21, 2010 at 4:30 PM, Jean-Louis MONTEIRO
> <je...@atosorigin.com> wrote:
>>
>> Hi Christian,
>>
>> AFAIK, OpenEJB only supports JPA 1.0.
>> I believe a post has already been pushed to the user@list.
>>
>> BTW, the API has probably changed in order to integrate Bean Validation
>> spec
>> and Criteria API that's why you cannot just get a JPA implementation
>> working
>> by changing the implementation jar.
>>
>> Jean-Louis
>>
>>
>>
>> Christian Bourque wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to use the new features of JPA 2.0 (Hibernate 3.5.0-Beta-3)
>>> with
>>> OpenEJB 3.1.2 but I get an exception:
>>>
>>> Caused by: java.lang.AbstractMethodError:
>>> org.apache.openejb.persistence.PersistenceUnitInfoImpl.getValidationMode()Ljavax/persistence/ValidationMode;
>>> at
>>> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:487)
>>> at
>>> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:165)
>>> at
>>> org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:184)
>>> at
>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:489)
>>> ... 40 more
>>>
>>> I there a way to replace the PersistentUnitInfo implementation of
>>> OpenEJB
>>> by the Hibernate one?
>>>
>>> Thanks
>>>
>>> Christian
>>>
>>>
>>
>> --
>> View this message in context:
>> http://n4.nabble.com/openejb-jpa-2-0-hibernate-tp1055654p1060792.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: http://n4.nabble.com/openejb-jpa-2-0-hibernate-tp1055654p1598174.html
Sent from the OpenEJB User mailing list archive at Nabble.com.