I have a class like this:
Class ItemCategory Item Category
I would like to select all (distinct) Items base of the intersection between two disjunctions of CategoryIds. Is this possible using the criteria api?
Thanks.
Best wishes,
Christian
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NHibernate doesn’t support Unions. You would need to use native SQL.