I tried creating an EntityManagerFactory with Spring 3 but I keep getting the
following error:

Caused by: java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
        at
org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:457)
        at
org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314)

It seems like the issue is that this method was added in JPA 2.0 while the
version supported by Spring is only OpenJPA 1.1.0 (which is I guess JPA 1.0
compatible) 

I couldn't find on SpringSource repository newer version than 1.1.0.
Any ideas?

Thanks,
Guy
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Error-running-on-Spring-3-tp5781867p5781867.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to