HHH-12903 Add the column names to the proper @Column annotations

This commit is contained in:
Guillaume Smet 2018-08-12 17:17:16 +02:00
parent 366698e229
commit 46ed100baf
1 changed files with 6 additions and 10 deletions

View File

@ -6,6 +6,8 @@
*/ */
package org.hibernate.envers.test.integration.flush; package org.hibernate.envers.test.integration.flush;
import static org.junit.Assert.assertEquals;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.LinkedList; import java.util.LinkedList;
@ -18,7 +20,6 @@ import javax.persistence.EntityManager;
import javax.persistence.FetchType; import javax.persistence.FetchType;
import javax.persistence.FlushModeType; import javax.persistence.FlushModeType;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.JoinColumn; import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne; import javax.persistence.ManyToOne;
@ -30,11 +31,8 @@ import org.hibernate.envers.AuditMappedBy;
import org.hibernate.envers.Audited; import org.hibernate.envers.Audited;
import org.hibernate.envers.test.BaseEnversJPAFunctionalTestCase; import org.hibernate.envers.test.BaseEnversJPAFunctionalTestCase;
import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.Priority;
import org.junit.Test;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/** /**
* @author Chris Cranford * @author Chris Cranford
@ -71,11 +69,10 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase {
@Audited @Audited
@MappedSuperclass @MappedSuperclass
public static class BaseDocument extends AbstractEntity { public static class BaseDocument extends AbstractEntity {
@Column(name = "numberValue")
private String number; private String number;
private Date date; private Date date;
@Column(nullable = false) @Column(name = "numberValue", nullable = false)
public String getNumber() { public String getNumber() {
return number; return number;
} }
@ -84,7 +81,7 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase {
this.number = number; this.number = number;
} }
@Column(nullable = false) @Column(name = "dateValue", nullable = false)
public Date getDate() { public Date getDate() {
return date; return date;
} }
@ -120,10 +117,9 @@ public class CommitFlushCollectionTest extends BaseEnversJPAFunctionalTestCase {
@MappedSuperclass @MappedSuperclass
public abstract static class BaseDocumentLine extends AbstractEntity { public abstract static class BaseDocumentLine extends AbstractEntity {
@Column(name = "textValue")
private String text; private String text;
@Column(nullable = false) @Column(name = "textValue", nullable = false)
public String getText() { public String getText() {
return text; return text;
} }