Last active
November 14, 2018 19:54
-
-
Save samuelmale/1a52375a67e1ac0e47e347c3c3956404 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this works fine | |
| if (!fields.isEmpty()) { | |
| Criteria crit2 = crit.createCriteria("formFields", "ff"); | |
| crit2.add(Restrictions.eqProperty("ff.form.formId", "f.formId")); | |
| crit2.add(Restrictions.in("ff.field", fields)); | |
| } | |
| // this also works fine | |
| if (!fields.isEmpty()) { | |
| Criteria crit2 = crit.createCriteria("formFields", "ff"); | |
| crit2.add(Restrictions.eqProperty("ff.form.formId", "ff.form.formId")); | |
| crit2.add(Restrictions.in("ff.field", fields)); | |
| } | |
| // this also works fine | |
| if (!fields.isEmpty()) { | |
| Criteria crit2 = crit.createCriteria("formFields", "ff"); | |
| crit2.add(Restrictions.eqProperty("ff.form.formId", "form.formId")); | |
| crit2.add(Restrictions.in("ff.field", fields)); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment