how can i code the sql below using JPA2 CriteriaBuilder?
i tried to use SetJoin but couldn't figure how to use.
thanks in advance
posted 5 years ago
Assuming you have a parent/children relationship, then just join by this relationship. If you don't, then you should add one. If for some odd reason you didn't want a relationship you could get a root on both object and join them manually in the where clause.