commit | a412b5a67fd49c2bb977573bd256b38153a531c3 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sun Jan 19 18:49:33 2020 +0100 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sun Jan 19 18:49:33 2020 +0100 |
tree | 3af974b3cd02f4a79ce05ee229147ac9b5da89ae | |
parent | 378b93ee52512659b0b886540b1f122a545b66ac [diff] |
Category: Add #articles mapping. Change-Id: Iac78840f98950fc9d79bbbc802baf4ecc961f8b4
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 @@ @ManyToMany(mappedBy = "supercategories", fetch = FetchType.LAZY) public Set<Category> subcategories; + + @ManyToMany(fetch = FetchType.LAZY, mappedBy = "categories") + public Set<Article> articles; }