mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-01 15:29:11 +00:00
HHH-10036 - Fix identifier is too long exception for test TableGeneratorQuotingTest
This commit is contained in:
parent
97606e8bf0
commit
46232719d1
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user