From 1f70ef749407bf0578d14f5c9f370c165351302a Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Thu, 19 Apr 2018 14:14:41 -0700 Subject: [PATCH] HHH-12507 : InsertOrderingWithCompositeTypeAssociation test fails on Oracle due to reserved word (cherry picked from commit c7ea49a0b3d72cf3a81b16fc4aa24cebf5db4e8b) --- .../InsertOrderingWithCompositeTypeAssociation.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingWithCompositeTypeAssociation.java b/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingWithCompositeTypeAssociation.java index d14e1edaeb..65f00b157b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingWithCompositeTypeAssociation.java +++ b/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingWithCompositeTypeAssociation.java @@ -7,7 +7,6 @@ package org.hibernate.test.insertordering; import java.util.Map; -import java.util.Objects; import java.util.UUID; import javax.persistence.CascadeType; @@ -20,6 +19,7 @@ import javax.persistence.ForeignKey; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; +import javax.persistence.Table; import org.hibernate.cfg.AvailableSettings; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; @@ -61,10 +61,11 @@ public class InsertOrderingWithCompositeTypeAssociation extends BaseEntityManage } @Entity(name = "Comment") + @Table(name = "COMMENT_TABLE") public static class Comment { @Id private String id; - @Column(length = 256) + @Column(name = "`comment`", length = 256) private String comment; Comment() {