Use your select and set the ResultTransformer of the IQuery 2008/10/21 Stuart <[EMAIL PROTECTED]>
> select new DailyRecord(p, l) > from Enrollment e > inner join e.Person p > inner join e.Location l > where e.Location.LocationId = :locationId > and :dateOfRecord >= e.EnrollmentDate > and :dateOfRecord < e.DropDate > > (A person enrolls at a location on a certain date, and each day we > create a record for each person enrolled at each location.) > > This works fine, but I really want my instance of DailyRecord to be > initialized with the date I pass in. But as I've said, saying "select > new DailyRecord(p, l, :dateOfRecord)" doesn't seem to be supported. > > Any help would be greatly appreciated! > > > --Stuart > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
