HHH-10068 - Missing generated JPA static metamodel class for envers revision entity

This commit is contained in:
Steve Ebersole 2015-09-02 08:23:20 -05:00
parent 1c70e0df0c
commit 518033eabe
2 changed files with 34 additions and 1 deletions

View File

@ -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() {

View File

@ -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 );
}
}