summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
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;
}