diff --git a/hibernate-envers/hibernate-envers.gradle b/hibernate-envers/hibernate-envers.gradle index f11d694bd8..10d0b458ac 100644 --- a/hibernate-envers/hibernate-envers.gradle +++ b/hibernate-envers/hibernate-envers.gradle @@ -12,6 +12,7 @@ dependencies { provided( [group: 'org.hibernate', name: 'hibernate-tools', version: '3.2.0.ga'] ) provided( libraries.ant ) + provided( project( ':hibernate-jpamodelgen' ) ) testCompile( project(':hibernate-testing') ) testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') ) @@ -22,7 +23,6 @@ dependencies { mavenPom { name = 'ENtity VERSioning support' description = 'ENtity VERSioning support' - } def osgiDescription() { diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/JpaStaticMetamodelTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/JpaStaticMetamodelTest.java new file mode 100644 index 0000000000..c0a0a127ec --- /dev/null +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/JpaStaticMetamodelTest.java @@ -0,0 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package org.hibernate.envers.test; + +import org.hibernate.envers.DefaultRevisionEntity_; +import org.hibernate.envers.DefaultTrackingModifiedEntitiesRevisionEntity_; +import org.hibernate.envers.enhanced.SequenceIdRevisionEntity_; +import org.hibernate.envers.enhanced.SequenceIdTrackingModifiedEntitiesRevisionEntity_; + +import org.hibernate.testing.junit4.BaseUnitTestCase; +import org.junit.Test; + +import static org.junit.Assert.assertNotNull; + +/** + * Just a test to make sure that the generated "JPA static metamodel" classes continue to be generated. + * + * @author Steve Ebersole + */ +public class JpaStaticMetamodelTest extends BaseUnitTestCase { + @Test + public void testStaticMetamodelGenerationHappened() { + // Really in a regression scenario, this class wont even compile... + assertNotNull( DefaultRevisionEntity_.class ); + assertNotNull( DefaultTrackingModifiedEntitiesRevisionEntity_.class ); + assertNotNull( SequenceIdRevisionEntity_.class ); + assertNotNull( SequenceIdTrackingModifiedEntitiesRevisionEntity_.class ); + } +}