HHH-11329 fix tests using too long identifiers

(cherry picked from commit b4a9be0adc)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/inheritancediscriminator/embeddable/TablePerClassWithEmbeddableTest.java
This commit is contained in:
Gail Badner 2016-12-12 16:08:24 -08:00
parent 857298618c
commit cd92cc6f5b
2 changed files with 7 additions and 7 deletions

View File

@ -146,16 +146,16 @@ public class SingleTableWithEmbeddableTest extends BaseCoreFunctionalTestCase {
public class EmployeeContact implements Serializable { public class EmployeeContact implements Serializable {
@ManyToOne @ManyToOne
@JoinColumn(name = "employee_embeddable_alert_contact") @JoinColumn(name = "employee_emb_alert_contact")
private Person alertContact; private Person alertContact;
@OneToMany @OneToMany
@JoinColumn(name = "employee_embeddable_alert_contact") @JoinColumn(name = "employee_emb_alert_contact")
private Set<Employee> alerteeContacts = new HashSet<>(); private Set<Employee> alerteeContacts = new HashSet<>();
@ManyToMany @ManyToMany
@OrderColumn(name = "list_idx") @OrderColumn(name = "list_idx")
@JoinTable(name = "employee_embeddable_person_list") @JoinTable(name = "employee_emb_person_list")
private List<Person> personList = new ArrayList<>(); private List<Person> personList = new ArrayList<>();
@ManyToMany @ManyToMany

View File

@ -50,7 +50,7 @@ public class TablePerClassWithEmbeddableTest extends BaseCoreFunctionalTestCase
public void testSelectFromEmbeddedField() { public void testSelectFromEmbeddedField() {
Session session = openSession(); Session session = openSession();
session.getTransaction().begin(); session.getTransaction().begin();
session.createSQLQuery( "select * from employee_embeddable_person_map" ).list(); session.createSQLQuery( "select * from employee_emb_person_map" ).list();
session.getTransaction().commit(); session.getTransaction().commit();
session.close(); session.close();
} }
@ -145,16 +145,16 @@ public class TablePerClassWithEmbeddableTest extends BaseCoreFunctionalTestCase
public class EmployeeContact implements Serializable { public class EmployeeContact implements Serializable {
@ManyToOne @ManyToOne
@JoinColumn(name = "employee_embeddable_alert_contact") @JoinColumn(name = "employee_emb_alert_contact")
private Person alertContact; private Person alertContact;
@OneToMany @OneToMany
@JoinColumn(name = "employee_embeddable_alert_contact") @JoinColumn(name = "employee_emb_alert_contact")
private Set<Employee> alerteeContacts = new HashSet<>(); private Set<Employee> alerteeContacts = new HashSet<>();
@ManyToMany @ManyToMany
@OrderColumn(name = "list_idx") @OrderColumn(name = "list_idx")
@JoinTable(name = "employee_embeddable_person_list") @JoinTable(name = "employee_emb_person_list")
private List<Person> personList = new ArrayList<>(); private List<Person> personList = new ArrayList<>();
@ManyToMany @ManyToMany