wrong examples of elements function in HQL Documentation (14.1)
---------------------------------------------------------------
Key: HHH-3916
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3916
Project: Hibernate Core
Issue Type: Bug
Components: documentation
Affects Versions: 3.3.1
Reporter: Jordi Boixadera Planas
In the chapter "14.10. Expressions" doesn't mention that the funcions
elements, exists, ... don't work with collections unless you explicitly join with that
collection.
For example, one of the samples provided is:
"from Cat cat where exists elements(cat.kittens)"
With version 3.2.5ga this example doesn't work, to make it work it should be:
"from Cat cat left join cat.kittens where exists elements(cat.kittens)"
In the issue HHH-2667 "'illegal attempt to dereference collection' when using
auto-join" it is commented that a explicit join has to be used in these cases.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira