summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-19 18:49:33 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-19 18:49:33 +0100
commita412b5a67fd49c2bb977573bd256b38153a531c3 (patch)
tree3af974b3cd02f4a79ce05ee229147ac9b5da89ae /src/main/java
parent378b93ee52512659b0b886540b1f122a545b66ac (diff)
Category: Add #articles mapping.
Change-Id: Iac78840f98950fc9d79bbbc802baf4ecc961f8b4
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/pages/Category.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/pages/Category.java b/src/main/java/eu/mulk/mulkcms2/pages/Category.java
index 06e2429..31a9db7 100644
--- a/src/main/java/eu/mulk/mulkcms2/pages/Category.java
+++ b/src/main/java/eu/mulk/mulkcms2/pages/Category.java
@@ -31,4 +31,7 @@ public class Category extends PanacheEntityBase {
@ManyToMany(mappedBy = "supercategories", fetch = FetchType.LAZY)
public Set<Category> subcategories;
+
+ @ManyToMany(fetch = FetchType.LAZY, mappedBy = "categories")
+ public Set<Article> articles;
}