HHH-11329 fix tests using too long identifiers

This commit is contained in:
Gail Badner 2016-12-12 16:08:24 -08:00
parent a4cf282070
commit b4a9be0adc
2 changed files with 7 additions and 7 deletions

View File

@ -141,16 +141,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
@Test @Test
public void testSelectFromEmbeddedField() { public void testSelectFromEmbeddedField() {
doInHibernate( this::sessionFactory, session -> { doInHibernate( this::sessionFactory, session -> {
session.createNativeQuery( "select * from employee_embeddable_person_map" ).getResultList(); session.createNativeQuery( "select * from employee_emb_person_map" ).getResultList();
} ); } );
} }
@ -140,16 +140,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