HHH-13569 : Shorten table name that's too long for Oracle

This commit is contained in:
Gail Badner 2019-08-15 01:28:23 -07:00
parent 210aff098c
commit 7c57047f4a
2 changed files with 2 additions and 1 deletions

View File

@ -615,7 +615,7 @@ public class EmbeddedTest extends BaseNonConfigCoreFunctionalTestCase {
public void testDefaultCollectionTable() throws Exception {
//are the tables correct?
assertTrue( SchemaUtil.isTablePresent( "WealthyPerson_vacationHomes", metadata() ) );
assertTrue( SchemaUtil.isTablePresent( "WealthyPerson_legacyVacationHomes", metadata() ) );
assertTrue( SchemaUtil.isTablePresent( "WelPers_LegacyVacHomes", metadata() ) );
assertTrue( SchemaUtil.isTablePresent( "WelPers_VacHomes", metadata() ) );
//just to make sure, use the mapping

View File

@ -19,6 +19,7 @@ public class WealthyPerson extends Person {
protected Set<Address> vacationHomes = new HashSet<Address>();
@ElementCollection
@CollectionTable(name = "WelPers_LegacyVacHomes")
protected Set<Address> legacyVacationHomes = new HashSet<Address>();
@ElementCollection