Hide
When testing Roo / Hibernate with SFW 3.0.3.BUILD-SNAPSHOT the following exception occurs:
java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;:
This can be resolved by explicitly including the following dependency:
{code}
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
{code}
Show
When testing Roo / Hibernate with SFW 3.0.3.BUILD-SNAPSHOT the following exception occurs:
java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;:
This can be resolved by explicitly including the following dependency:
{code}
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
{code}