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 $
|
||||
package org.hibernate.orm.test.annotations.id.sequences.entities;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Set;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
|
@ -30,20 +30,20 @@ public class Bunny implements Serializable {
|
|||
@Id
|
||||
@GeneratedValue(generator = "java5_uuid")
|
||||
@GenericGenerator(name = "java5_uuid", type = org.hibernate.orm.test.annotations.id.UUIDGenerator.class)
|
||||
@Column(name = "id", precision = 128, scale = 0)
|
||||
private BigDecimal id;
|
||||
@Column(name = "id", precision = 128)
|
||||
private BigInteger id;
|
||||
|
||||
@OneToMany(mappedBy = "bunny", cascade = { CascadeType.PERSIST })
|
||||
@OneToMany(mappedBy = "bunny", cascade = CascadeType.PERSIST)
|
||||
Set<PointyTooth> teeth;
|
||||
|
||||
@OneToMany(mappedBy = "bunny", cascade = { CascadeType.PERSIST })
|
||||
@OneToMany(mappedBy = "bunny", cascade = CascadeType.PERSIST)
|
||||
Set<TwinkleToes> toes;
|
||||
|
||||
public void setTeeth(Set<PointyTooth> teeth) {
|
||||
this.teeth = teeth;
|
||||
}
|
||||
|
||||
public BigDecimal getId() {
|
||||
public BigInteger getId() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue