Given a list of id's i want to retrieve all my objects. i try IList<int> oListPersonId = GetAllInterestingPersonId(); ISession oSession = Factory.GetSession(); IQuery oQuery.CreateQuery("Select Person from Person p where p.id in :pListId"); oQuery.AddParameterList("pListId",oListPersonId); oQuery.List<Person>();
This fails as soon as pListId oListPersonId is big, ie more than ~1000 ~2000. Is there a good practice to pass Collections or List as parameters, either in Criterias or HQL ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---