From 0b96d8fca74b980e01bb55e916e12732da74949b Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Thu, 6 Jan 2022 06:21:01 -0600 Subject: [PATCH] - fix too-long identifier for Oracle --- .../collections/semantics/TheEntityWithUniqueList.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/semantics/TheEntityWithUniqueList.java b/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/semantics/TheEntityWithUniqueList.java index 281aeb9496..1623b8c96a 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/semantics/TheEntityWithUniqueList.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/semantics/TheEntityWithUniqueList.java @@ -11,13 +11,16 @@ import java.util.List; import org.hibernate.annotations.CollectionSemantics; import jakarta.persistence.Basic; +import jakarta.persistence.CollectionTable; import jakarta.persistence.ElementCollection; import jakarta.persistence.Entity; import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Steve Ebersole */ +@Table(name = "unique_list_owners") //tag::collections-custom-semantics-ex[] @Entity public class TheEntityWithUniqueList { @@ -27,6 +30,7 @@ public class TheEntityWithUniqueList { @Basic private String name; + @CollectionTable(name = "unique_list_contents") //tag::collections-custom-semantics-ex[] @ElementCollection @CollectionSemantics(UniqueListSemantic.class)