[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2191) Criteria search does not work with association mapped in <properties> tag

Wiatr Mariusz (JIRA) noreply at atlassian.com
Fri Oct 27 12:44:04 EDT 2006


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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list