HHH-12507 : InsertOrderingWithCompositeTypeAssociation test fails on Oracle due to reserved word

This commit is contained in:
Gail Badner 2018-04-19 14:14:41 -07:00
parent c0c0ae1c38
commit c7ea49a0b3
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@
package org.hibernate.test.insertordering; package org.hibernate.test.insertordering;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import javax.persistence.CascadeType; import javax.persistence.CascadeType;
@ -20,6 +19,7 @@ import javax.persistence.ForeignKey;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.JoinColumn; import javax.persistence.JoinColumn;
import javax.persistence.OneToOne; import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.AvailableSettings;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
@ -61,10 +61,11 @@ public class InsertOrderingWithCompositeTypeAssociation extends BaseEntityManage
} }
@Entity(name = "Comment") @Entity(name = "Comment")
@Table(name = "COMMENT_TABLE")
public static class Comment { public static class Comment {
@Id @Id
private String id; private String id;
@Column(length = 256) @Column(name = "`comment`", length = 256)
private String comment; private String comment;
Comment() { Comment() {