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