HHH-10328 : Unit test failure due to database identifier too long

This commit is contained in:
Gail Badner 2015-11-24 20:53:29 -08:00
parent a2026c3ad0
commit 24ee708de7
2 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,7 @@ import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.Session;
import org.hibernate.testing.TestForIssue;
@ -72,6 +73,7 @@ public class CollectionElementConversionTest extends BaseNonConfigCoreFunctional
}
@Entity
@Table(name = "Customer")
public static class Customer {
@Id
private Integer id;

View File

@ -101,7 +101,7 @@ public class SuperclassCollectionTest extends BaseEntityManagerFunctionalTestCas
return query.getResultList();
}
@Entity
@Entity(name="Address")
public static class Address {
@Id
@GeneratedValue
@ -127,7 +127,7 @@ public class SuperclassCollectionTest extends BaseEntityManagerFunctionalTestCas
protected abstract List<Address> getLocalAddresses();
}
@Entity
@Entity(name="Person")
public static class Person extends PersonBase {
@OneToMany(cascade = CascadeType.ALL)
@JoinTable(name = "person_localaddress")
@ -139,7 +139,7 @@ public class SuperclassCollectionTest extends BaseEntityManagerFunctionalTestCas
}
}
@Entity
@Entity(name="OtherSubclass")
public static class OtherSubclass extends PersonBase {
@OneToMany(cascade = CascadeType.ALL)
@JoinTable(name = "other_person_localaddress")