summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-04-03 15:11:37 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-04-03 20:02:40 +0200
commit1ef241ddce311ef419952f71ceedfc5cd195ec30 (patch)
treebf427fd16a6829758e0219f1bce1beb8cd4fedbe /src/main/java
parentab36adbbc22fcd156ddce528a9ff5e5103623342 (diff)
Update dependencies.
Change-Id: Id97c8c7f160e67fbf9f79b00482ebd558727a38e
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java7
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java
index 112ca3e..c3e58c5 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java
@@ -25,6 +25,11 @@ public class PostTarget extends PanacheEntityBase {
public int targetId;
@ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "target", referencedColumnName = "id", nullable = false)
+ @JoinColumn(
+ name = "target",
+ referencedColumnName = "id",
+ nullable = false,
+ insertable = false,
+ updatable = false)
public Role target;
}
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java
index e439ec9..f6347b2 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java
@@ -6,7 +6,10 @@ import javax.persistence.Id;
public class PostTargetPK implements Serializable {
+ @Column(name = "message", nullable = false)
private int message;
+
+ @Column(name = "target", nullable = false)
private int targetId;
@Column(name = "message", nullable = false)