[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5437) Unknown column error when adding a where clause to a collection

Vishal Popat (JIRA) noreply at atlassian.com
Wed Aug 4 12:56:39 EDT 2010


Unknown column error when adding a where clause to a collection
---------------------------------------------------------------

                 Key: HHH-5437
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5437
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.3.2
         Environment: Hibernate 3.3.2.GA, MySQL
            Reporter: Vishal Popat


I have raised this in the forum without reply. With the test I have done, I am pretty sure this is a bug:

Here is the snippet of my collection:
<set name="activeItems" sort="unsorted" table="SUB_ITEM" where="STATUS='ACTIVE'">
<key column="PRODUCT_ID"/>
<one-to-many class="SubItem"/>
</set>

The column "STATUS" is part of the table ITEM and class Item. I would expect inheritance to find the column STATUS within the parent table.

If I change the column to something that is available in the child table then it all works fine.


-- 
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