not a bug... but a breaking change since NH2.1.0 (perhaps)
please report a JIRA about documentation.
Thanks.

2009/11/10 Diego Mijelshon <[email protected]>

> I had a query that was roughly the following:
>
> *select xAlias, xAlias2.SomeProp*
> *from X xAlias, X xAlias2*
> *inner join fetch xAlias.Y*
> *inner join fetch xAlias.Y.Z*
> *where **<some join/filter conditions>*
>
> (not sure if having xAlias2 makes any difference, but that's my testcase)
> It worked flawlessly in 2.1.0. But in 2.1.1, I get the following error
> (edited names in red):
>
> *NHibernate.QueryException: Query specified join fetching, but the owner
> of the fetched association was not present in the select list
> [FromElement{explicit,not a collection join,fetch join,fetch non-lazy
> properties,classAlias=,role=,tableName=**Z**,tableAlias=**Z9_**,origin=**Y
> Y8_**,colums={**Y8_.XId** ,className=**Y**}}]
> *
> This is fixed by doing the following change:
>
> *select xAlias, xAlias2.SomeProp*
> *from X xAlias, X xAlias2*
> *inner join fetch xAlias.Y yAlias*
> *inner join fetch yAlias.Z*
> *where **<some join/filter conditions>*
> *
> *
> I'd like to know if this is expected (maybe it was changed to avoid some
> other issue) or is a bug (in which case I'll report it in JIRA)
>
>    Diego
>
> >
>


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