Thanks, I will give it a go.
On 8 jan, 10:40, "Ayende Rahien" <[email protected]> wrote: > You have to call it directly.something like: > > session.CreateQuery(typeo(AnotherType)) > .Add(Restrictons.In("id", values)) > .List(); > > > > On Thu, Jan 8, 2009 at 11:28 AM, Adeel <[email protected]> wrote: > > > I have managed to do the splitting of the values, but how can I then > > call another query? Is it called by the IUserType implementation, or > > do I have to create another mapping in my mapping file? > > > On 8 jan, 10:23, "Ayende Rahien" <[email protected]> wrote: > > > You get the value, split it by comma, and then issue another query to > > load > > > all those entities. > > > > On Thu, Jan 8, 2009 at 11:09 AM, Adeel <[email protected]> wrote: > > > > > Thank you for your swift reply. > > > > > How would I handle such an implementation of IUserType. > > > > As I understand it, an implementation of IUserType can perform > > > > mappings for data which has been retrieved by NHibernate. > > > > The data in question is not retrieved as yet. > > > > > P.S.: > > > > Please forgive me my ignorance, but this is the first time I am using > > > > IUserType and the deeper internals of NHibernate. > > > > > On 8 jan, 09:47, "Ayende Rahien" <[email protected]> wrote: > > > > > One option would be to create a IUserType that would map the two. > > > > > Note that this preclude the ability to do eager fetching on the > > > > collection. > > > > > > On Thu, Jan 8, 2009 at 10:28 AM, Adeel <[email protected]> > > wrote: > > > > > > > Hi All, > > > > > > > Currentyly I am working on a project with a legacy database. > > > > > > The setup is as such that in one of the tables collections of > > foreign- > > > > > > keys are stored in a comma delimited strring. > > > > > > I have thus far managed to retrieve an object collection of which > > the > > > > > > Id's are set, because that is the only information which is present > > in > > > > > > the field (this using an implementation of IUserType). What I > > really > > > > > > want is that the objects are fully populated. Can anyone point me > > to a > > > > > > possible solution? > > > > > > > Thanking y'all in anticipation. > > > > > > > Kind regards.- Tekst uit oorspronkelijk bericht niet weergeven - > > > > > > - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit > > oorspronkelijk bericht niet weergeven - > > > > - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk > > > bericht niet weergeven - > > - Tekst uit oorspronkelijk bericht weergeven - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
