HHH-13569 : Shorten table name that's too long for Oracle
This commit is contained in:
parent
210aff098c
commit
7c57047f4a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue