Criteria search does not work with association mapped in <properties> tag
-------------------------------------------------------------------------
Key: HHH-2191
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2191
Project: Hibernate3
Type: Bug
Versions: 3.2.0.cr4
Environment: Hibernate 3.2 cr4
In memory HSQLDB or MySQL 4.1.21
Reporter: Wiatr Mariusz
Attachments: sample.zip
Association mapped as
<properties name="unique" unique="true">
<many-to-one name="group">...
...
</properties>
can not be used in criteria query as
DetachedCriteria c =
DetachedCriteria.forClass(Site.class).createCriteria("group").add(Property.forName("name").eq("Group"));
The query generated by criteria contains unknow table name.
(It works without the <properties> tag)
--
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