Interesting idea Will, that should work for restriction but what about ordering? Any ideas about ordering with an attribute of an association through CreateAlias?
On Dec 8, 4:03 pm, "Will Shaver" <[EMAIL PROTECTED]> wrote: > If you want to specify it in the where clause without including it in a > join, have NH perform a subquery using DetachedCriteria. > > On Mon, Dec 8, 2008 at 3:53 PM, Jesse <[EMAIL PROTECTED]> wrote: > > > Does anybody know how to prevent eager fetching when using CreateAlias > > with the criteria api? I just want to use CreateAlias to specify a > > where clause without bring back the whole association. The association > > is cached so there is no reason whatsoever to bring it back from the > > DB and repopulate. > > > This may be related to the same issue with Hibernate > >http://opensource.atlassian.com/projects/hibernate/browse/HHH-3538 > > > Thanks for any insight. > > Jesse --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. 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 -~----------~----~----~----~------~----~------~--~---
