From 299f5a5ff90d35f705a5d59bf78ec066a05e9b1a Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 11 Sep 2020 20:25:19 +0200 Subject: KB56 PostText: Inherit from PanacheEntityBase. PostText did not inherit from PanacheEntityBase. This meant that automatic setter and getter generation (and thus dirtiness tracking) was not working, making updates to existing post texts impossible. Change-Id: I0901b15acc73827276322feb000831a8e93d5717 --- src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java index 01753dc..8b1697c 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java @@ -1,5 +1,6 @@ package eu.mulk.mulkcms2.benki.posts; +import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import javax.annotation.CheckForNull; import javax.json.bind.annotation.JsonbTransient; import javax.persistence.Column; @@ -17,7 +18,7 @@ import javax.persistence.Table; @Table(name = "post_texts", schema = "benki") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @IdClass(PostTextPK.class) -public abstract class PostText> { +public abstract class PostText> extends PanacheEntityBase { private static final int DESCRIPTION_CACHE_VERSION = 1; -- cgit v1.2.3