Expression.in(property, values) : supports for comparing property with collection of values provided. we have the methods Expression.geProperty, leProperty & eqProperty...etc, supports the greater than, less than, equal to comparisions between two alias properties. But i need to compare two alias properties with "in" operation like below given example.
example: DetachedCriteria crit = DetachedCriteria.forClass(Prospects.class); crit.createAlias("regDocs.documentType", "docType"); crit.createAlias("docType.docRequirement", "docReq");
"status" is a string property in Prospects.class. "applicableStatusSet" is a "Set" Object property in docRequirement.class.
I need to check "Prospects.status" falls in the "docReq.applicableStatusSet". How do we do this condition using hibernate Api.
Thanks in advance, suresh.
|