From 46ed100baf5cd88d7b73fff715864130629fef22 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sun, 12 Aug 2018 17:17:16 +0200 Subject: [PATCH] HHH-12903 Add the column names to the proper @Column annotations --- .../flush/CommitFlushCollectionTest.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/flush/CommitFlushCollectionTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/flush/CommitFlushCollectionTest.java index 5c60e2173f..ff310a7f6e 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/flush/CommitFlushCollectionTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/flush/CommitFlushCollectionTest.java @@ -6,6 +6,8 @@ */ package org.hibernate.envers.test.integration.flush; +import static org.junit.Assert.assertEquals; + import java.util.Arrays; import java.util.Date; import java.util.LinkedList; @@ -18,7 +20,6 @@ import javax.persistence.EntityManager; import javax.persistence.FetchType; import javax.persistence.FlushModeType; import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @@ -30,11 +31,8 @@ import org.hibernate.envers.AuditMappedBy; import org.hibernate.envers.Audited; import org.hibernate.envers.test.BaseEnversJPAFunctionalTestCase; import org.hibernate.envers.test.Priority; -import org.junit.Test; - import org.hibernate.testing.TestForIssue; - -import static org.junit.Assert.assertEquals; +import org.junit.Test; /** * @author Chris Cranford @@ -71,11 +69,10 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase { @Audited @MappedSuperclass public static class BaseDocument extends AbstractEntity { - @Column(name = "numberValue") private String number; private Date date; - @Column(nullable = false) + @Column(name = "numberValue", nullable = false) public String getNumber() { return number; } @@ -84,7 +81,7 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase { this.number = number; } - @Column(nullable = false) + @Column(name = "dateValue", nullable = false) public Date getDate() { return date; } @@ -120,10 +117,9 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase { @MappedSuperclass public abstract static class BaseDocumentLine extends AbstractEntity { - @Column(name = "textValue") private String text; - @Column(nullable = false) + @Column(name = "textValue", nullable = false) public String getText() { return text; }