From c0481e729d756ecef11c02860549c729f5eacc3e Mon Sep 17 00:00:00 2001 From: Joram Barrez Date: Wed, 17 Jul 2024 12:07:03 +0200 Subject: [PATCH] Test fix : remove @GeneratedValue from jpa entity - no need for it in the test --- .../java/org/flowable/rest/api/jpa/model/Message.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/flowable-rest/src/test/java/org/flowable/rest/api/jpa/model/Message.java b/modules/flowable-rest/src/test/java/org/flowable/rest/api/jpa/model/Message.java index af6fa20f643..3ed31577a63 100644 --- a/modules/flowable-rest/src/test/java/org/flowable/rest/api/jpa/model/Message.java +++ b/modules/flowable-rest/src/test/java/org/flowable/rest/api/jpa/model/Message.java @@ -14,8 +14,6 @@ import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.Table; @@ -24,7 +22,6 @@ public class Message { @Id - @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "id", unique = true, nullable = false) private Long id; @@ -34,8 +31,15 @@ public Long getId() { return id; } + public void setId(Long id) { + this.id = id; + } + public String getText() { return text; } + public void setText(String text) { + this.text = text; + } }