HHH-12757 - Fix test failure on Oracle.
This commit is contained in:
parent
212d8c01e5
commit
fcdb89302a
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue