Dear community,
I would appreciate it if someone could help me creating a HQL-Statement or the code to build up a correct criteria.
Here is what I want to express:
I have two identities: Article and ArticleModification. Each Article can have none or multiple ArticleModifiations.
I want to retrieve all Articles which do not have an ArticleModification or if they have one or more, every ArticleModification.LocksArticle must be false.
So something like:
Code:
select art from Article as art inner join art.ArticleModifications artMod where artMod.LocksArticle=0
Do you have an idea?
Thank you!