HHH-10068 - Missing generated JPA static metamodel class for envers revision entity
(cherry picked from commit 518033eabe
)
This commit is contained in:
parent
9d2b106024
commit
336b548c1c
|
@ -12,6 +12,7 @@ dependencies {
|
||||||
|
|
||||||
provided( [group: 'org.hibernate', name: 'hibernate-tools', version: '3.2.0.ga'] )
|
provided( [group: 'org.hibernate', name: 'hibernate-tools', version: '3.2.0.ga'] )
|
||||||
provided( libraries.ant )
|
provided( libraries.ant )
|
||||||
|
provided( project( ':hibernate-jpamodelgen' ) )
|
||||||
|
|
||||||
testCompile( project(':hibernate-testing') )
|
testCompile( project(':hibernate-testing') )
|
||||||
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
testCompile( project(path: ':hibernate-entitymanager', configuration: 'tests') )
|
||||||
|
@ -22,7 +23,6 @@ dependencies {
|
||||||
mavenPom {
|
mavenPom {
|
||||||
name = 'ENtity VERSioning support'
|
name = 'ENtity VERSioning support'
|
||||||
description = 'ENtity VERSioning support'
|
description = 'ENtity VERSioning support'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def osgiDescription() {
|
def osgiDescription() {
|
||||||
|
|
|
@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||||
|
*/
|
||||||
|
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 );
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue