minor fix to test
This commit is contained in:
parent
a8aab7f5f2
commit
99cbd9a24a
|
@ -8,7 +8,7 @@
|
||||||
//$Id: Bunny.java 14761 2008-06-11 13:51:06Z hardy.ferentschik $
|
//$Id: Bunny.java 14761 2008-06-11 13:51:06Z hardy.ferentschik $
|
||||||
package org.hibernate.orm.test.annotations.id.sequences.entities;
|
package org.hibernate.orm.test.annotations.id.sequences.entities;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigInteger;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import jakarta.persistence.CascadeType;
|
import jakarta.persistence.CascadeType;
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
|
@ -30,20 +30,20 @@ public class Bunny implements Serializable {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(generator = "java5_uuid")
|
@GeneratedValue(generator = "java5_uuid")
|
||||||
@GenericGenerator(name = "java5_uuid", type = org.hibernate.orm.test.annotations.id.UUIDGenerator.class)
|
@GenericGenerator(name = "java5_uuid", type = org.hibernate.orm.test.annotations.id.UUIDGenerator.class)
|
||||||
@Column(name = "id", precision = 128, scale = 0)
|
@Column(name = "id", precision = 128)
|
||||||
private BigDecimal id;
|
private BigInteger id;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "bunny", cascade = { CascadeType.PERSIST })
|
@OneToMany(mappedBy = "bunny", cascade = CascadeType.PERSIST)
|
||||||
Set<PointyTooth> teeth;
|
Set<PointyTooth> teeth;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "bunny", cascade = { CascadeType.PERSIST })
|
@OneToMany(mappedBy = "bunny", cascade = CascadeType.PERSIST)
|
||||||
Set<TwinkleToes> toes;
|
Set<TwinkleToes> toes;
|
||||||
|
|
||||||
public void setTeeth(Set<PointyTooth> teeth) {
|
public void setTeeth(Set<PointyTooth> teeth) {
|
||||||
this.teeth = teeth;
|
this.teeth = teeth;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getId() {
|
public BigInteger getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue