HQL: selecting components inside components doesn't work

Description

When using an entity with a component owning another component, as follows:

<class name="org.test.hibernate.bug2455.MyEntity">
<composite-id>
<key-property name="myKey">
<column name="myKey"/>
</key-property>
</composite-id>

<component name="myComponent">
<property name="myValue">
<column name="myValue"/>
</property>

<component name="myInnerComponent">
<property name="myInnerValue">
<column name="myInnerValue"/>
</property>
</component>
</component>
</class>

The following HQL query fails:

"select e.myComponent.myInnerComponent from org.test.hibernate.bug2455.MyEntity e"

with the following error:

could not resolve property: myInnerComponent of: org.test.hibernate.bug2455.MyEntity

Environment

Probably all. Tested with DB2, MySQL, HSQL + Tomcat, WAS5, DriverManager.

Activity

Show:
Steve Ebersole
January 19, 2007, 6:21 PM

trunk / 3.2

Steve Ebersole
March 21, 2011, 7:05 PM

Bulk closing stale resolved issues

Fixed

Assignee

Steve Ebersole

Reporter

circlespainter

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure