From 99cbd9a24a8b9ad77091f2a535b7303a7f8d6b81 Mon Sep 17 00:00:00 2001 From: Gavin Date: Thu, 1 Dec 2022 11:36:16 +0100 Subject: [PATCH] minor fix to test --- .../annotations/id/sequences/entities/Bunny.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/Bunny.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/Bunny.java index ea0b9bffcd..bd8fbbd89a 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/Bunny.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/Bunny.java @@ -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 teeth; - @OneToMany(mappedBy = "bunny", cascade = { CascadeType.PERSIST }) + @OneToMany(mappedBy = "bunny", cascade = CascadeType.PERSIST) Set toes; public void setTeeth(Set teeth) { this.teeth = teeth; } - public BigDecimal getId() { + public BigInteger getId() { return id; } }