I am trying to build JPA criteria for the following scenario. I have the following 3 Entity classes, two of which have a @ManyToOne relationship to UniqueType, but UniqueType do