You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cremor created an issue — 16th June 2011, 1:53:04:
NH-2615 fixed the exceptions that occured when a Linq query with a fetch on a component was executed but the fetch has still no effect on the generated SQL.
Attached is a patch that modifies the already existing test (NHSpecificTest\NH2705) so it also checks the generated statement.
David Roth added a comment — 10th May 2012, 11:32:17:
Is there any chance for fixing this issue soon? Anyone working on it or planning to do so?
We are using a lot of components in our project and we can`t fetch references with LINQ on collections because of this issue.
Oskar Berggren added a comment — 18th January 2013, 8:34:09:
select c from Company c
join fetch c.Address a
join fetch a.Country
But it should be:
select c from Company c join fetch c.Address.Country
In other words the Linq translator has to detect that c.Address is mapped as a component and should not add a join fetch for it, but instead for c.Address.Company.
cremor created an issue — 16th June 2011, 1:53:04:
David Roth added a comment — 10th May 2012, 11:32:17:
Oskar Berggren added a comment — 18th January 2013, 8:34:09:
David Roth added a comment — 15th February 2013, 13:01:45:
ahmed zeyada added a comment — 24th December 2015, 20:57:25:
The text was updated successfully, but these errors were encountered: