select m from CameraMount m left join m.Presets

2009/5/21 chewzoey <[email protected]>

>
> I dont understand why NHibernate returns an object[] when a join is
> performed but Hibernate does not. For example.
>
> The mapping
> <set name="Presets" table="CAMERA_PRESET_TBL">
>  <key column="LNKID_CAMERA_MOUNT"/>
>  <one-to-many class="CameraPreset, Model"/>
> </set>
>
> The query
> session.CreateQuery("From CameraMount m left join m.Presets").List();
>
>
> This will return an object[] where I would expect it to return a
> CameraMount that has its set of Presets initialized.
>
> Why?
>
> >
>


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

Reply via email to