Unknown column error when adding a where clause to a collection

Description

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.

Environment

Hibernate 3.3.2.GA, MySQL

Activity

Show:
Brett Meyer
November 27, 2013, 11:19 PM

Anyone have an reproducing test case to attach?

Brett Meyer
December 19, 2013, 10:31 PM

Note: In an attempt to clean up the HHH JIRA, we will be rejecting any ticket that sits in the "Awaiting Test Case" state for 2-3 months with no response. So, if this issue is critical to you, please attach a reproducing test case ASAP. Thanks!

Brett Meyer
March 3, 2014, 3:40 PM

Bulk rejecting issues lacking a test case or recent response.

Assignee

Unassigned

Reporter

Vishal Popat

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure