0
class Article{
        private Long articleId;
        private Set<Tag> tags;
    }

class Tag{

    private Set<Article> articles;

   private Set<TagLocale> tagLocales; 
}

class TagLocale{
    private Tag tag;
    private String name;
}

when i using criteria query article by articleId,the same time ,hierarchical queries tags and tagLocales,How can i do using criteria ?

1 Answers1

0

The problem seems to be related to joining 3 tables.

More or less the same have been answered here.

hibernate-criteria-join-with-3-tables

Community
  • 1
  • 1
Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116