From 7c57047f4a039221bad4dbaddae0dee03c8848be Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Thu, 15 Aug 2019 01:28:23 -0700 Subject: [PATCH] HHH-13569 : Shorten table name that's too long for Oracle --- .../org/hibernate/test/annotations/embedded/EmbeddedTest.java | 2 +- .../org/hibernate/test/annotations/embedded/WealthyPerson.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/EmbeddedTest.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/EmbeddedTest.java index 7b44272661..526a7e062d 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/EmbeddedTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/EmbeddedTest.java @@ -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 diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/WealthyPerson.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/WealthyPerson.java index 3b24b37908..05df8f1df6 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/WealthyPerson.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/embedded/WealthyPerson.java @@ -19,6 +19,7 @@ public class WealthyPerson extends Person { protected Set
vacationHomes = new HashSet
(); @ElementCollection + @CollectionTable(name = "WelPers_LegacyVacHomes") protected Set
legacyVacationHomes = new HashSet
(); @ElementCollection