HHH-9972 - fix table names were too long on Oracle DB

This commit is contained in:
Hynek Svabek 2015-07-23 10:46:19 +02:00 committed by Andrea Boriero
parent 5ec711fa1a
commit 7dbd199876
1 changed files with 6 additions and 1 deletions

View File

@ -16,16 +16,17 @@ import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne; import javax.persistence.ManyToOne;
import javax.persistence.OneToOne; import javax.persistence.OneToOne;
import javax.persistence.Subgraph; import javax.persistence.Subgraph;
import javax.persistence.Table;
import javax.persistence.Temporal; import javax.persistence.Temporal;
import javax.persistence.TemporalType; import javax.persistence.TemporalType;
import javax.persistence.TypedQuery; import javax.persistence.TypedQuery;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import org.hibernate.Hibernate; import org.hibernate.Hibernate;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@ -184,6 +185,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
} }
@Entity @Entity
@Table(name = "customerOrder")
public static class CustomerOrder { public static class CustomerOrder {
@Id @Id
@GeneratedValue @GeneratedValue
@ -200,6 +202,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
} }
@Entity @Entity
@Table(name = "address")
public static class Address { public static class Address {
@Id @Id
@GeneratedValue @GeneratedValue
@ -209,6 +212,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
} }
@Entity @Entity
@Table(name = "orderPosition")
public static class OrderPosition { public static class OrderPosition {
@Id @Id
@GeneratedValue @GeneratedValue
@ -222,6 +226,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
} }
@Entity @Entity
@Table(name = "product")
public static class Product { public static class Product {
@Id @Id
@GeneratedValue @GeneratedValue