HHH-12757 - Fix test failure on Oracle.

This commit is contained in:
Chris Cranford 2018-07-03 13:17:18 -04:00
parent 212d8c01e5
commit fcdb89302a
2 changed files with 9 additions and 9 deletions

View File

@ -78,7 +78,7 @@ public class EntityMapCompositeElementTest extends BaseEnversJPAFunctionalTestCa
final Value value = category.getValue( this.item );
assertEquals( "The Value", value.getText() );
assertEquals( Long.valueOf( 4711L ), value.getNumber() );
assertEquals( Long.valueOf( 4711L ), value.getNumberValue() );
}
@Override
@ -213,15 +213,15 @@ public class EntityMapCompositeElementTest extends BaseEnversJPAFunctionalTestCa
public static class Value implements Serializable {
private String text;
private Long number;
private Long numberValue;
Value() {
}
Value(String text, Long number) {
Value(String text, Long numberValue) {
this.text = text;
this.number = number;
this.numberValue = numberValue;
}
public String getText() {
@ -232,12 +232,12 @@ public class EntityMapCompositeElementTest extends BaseEnversJPAFunctionalTestCa
this.text = text;
}
public Long getNumber() {
return number;
public Long getNumberValue() {
return numberValue;
}
public void setNumber(Long number) {
this.number = number;
public void setNumberValue(Long numberValue) {
this.numberValue = numberValue;
}
}
}

View File

@ -27,7 +27,7 @@
<key column="category_id" not-null="true" />
<map-key-many-to-many column="item_id" class="org.hibernate.envers.test.integration.collection.EntityMapCompositeElementTest$Item" />
<composite-element class="org.hibernate.envers.test.integration.collection.EntityMapCompositeElementTest$Value">
<property name="number" column="number" />
<property name="numberValue" column="numberValue" />
<property name="text" column="text" />
</composite-element>
</map>