Hi there! I've just updated my application to use 2.1.2 instead of 2.1.0 I now happen to get lots of errors in named queries, which worked perfectly before. Only those queries containing more than one "inner join fetch" are affected. Example (simplified names):
select p from Person as p inner join fetch p.dog as d inner join fetch p.dog.shack as s
same for
select p from Person as p inner join fetch p.dog as d inner join fetch d.shack as s
When I disable query checking on start-up I get following exception on execution: Query specified join fetching, but the owner of the fetched association was not present in the select list ...
following example works fine:
select p from Person as p inner join fetch p.dog as d
I don't get why this is. And even worse:
select p from Person p inner join fetch p.dog d
does not work as well! Even though, I simply removed those "as", which I understand should be optional anyway! Anyone else experiencing similar problems, or any other suggestions? Thanks a lot!
|