HHH-12844 Fix HbmWithIdentityTest with Oracle

This commit is contained in:
Martin Simka 2018-07-20 13:54:24 +02:00 committed by Guillaume Smet
parent c03cb7c2c8
commit 89844c50de
3 changed files with 15 additions and 0 deletions

View File

@ -13,4 +13,8 @@ public interface A extends java.io.Serializable {
public Integer getAId();
public void setAId(Integer aId);
String getDescription();
void setDescription(String description);
}

View File

@ -23,6 +23,7 @@ public class AImpl implements A {
private static final long serialVersionUID = 1L;
private Integer aId = 0;
private String description;
public AImpl() {
}
@ -37,4 +38,13 @@ public class AImpl implements A {
public void setAId(Integer aId) {
this.aId = aId;
}
@Column( name = "description" )
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}

View File

@ -14,5 +14,6 @@
<id name="AId" column="aID" type="java.lang.Integer">
<generator class="identity"/>
</id>
<property name="description" column="description" type="string"/>
</class>
</hibernate-mapping>