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 -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to