Try it with DetachedCriteria instead. If you're dynamically building up a criteria in one place then executing it later (elsewhere), you should probably be leveraging DetachedCriteria anyway to avoid classes in your project being 'session-aware' than really should/need be. Your build-up-criteria-dynamically-based-on-user-input is probably (one of) the canonical use-case for DetachedCriteria anyway.
-Steve B. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/Q4-UkysTzDMJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
