mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13569 : Shorten table name that's too long for Oracle
(cherry picked from commit 7c57047f4a039221bad4dbaddae0dee03c8848be)
This commit is contained in:
parent
60cb3762ba
commit
345ac0ce75
@ -615,7 +615,7 @@ public void testEmbeddedAndOneToManyHql() throws Exception {
|
||||
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…
x
Reference in New Issue
Block a user