HHH-10036 - Fix identifier is too long exception for test TableGeneratorQuotingTest

This commit is contained in:
Andrea Boriero 2015-08-18 15:23:45 +01:00
parent 97606e8bf0
commit 46232719d1

View File

@ -10,6 +10,7 @@
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType; import javax.persistence.GenerationType;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.HibernateException; import org.hibernate.HibernateException;
import org.hibernate.boot.Metadata; import org.hibernate.boot.Metadata;
@ -62,7 +63,6 @@ public void testTableGeneratorQuoting() {
final Target target = new TargetDatabaseImpl( new JdbcConnectionAccessImpl( connectionProvider ) ); final Target target = new TargetDatabaseImpl( new JdbcConnectionAccessImpl( connectionProvider ) );
final SchemaManagementTool tool = serviceRegistry.getService( SchemaManagementTool.class ); final SchemaManagementTool tool = serviceRegistry.getService( SchemaManagementTool.class );
tool.getSchemaDropper( null ).doDrop( metadata, false, target );
tool.getSchemaCreator( null ).doCreation( metadata, false, target ); tool.getSchemaCreator( null ).doCreation( metadata, false, target );
try { try {
@ -77,6 +77,7 @@ public void testTableGeneratorQuoting() {
} }
@Entity @Entity
@Table(name = "test_entity")
private static class TestEntity { private static class TestEntity {
@Id @Id
@GeneratedValue(strategy = GenerationType.TABLE) @GeneratedValue(strategy = GenerationType.TABLE)