Issue Details (XML | Word | Printable)

Key: HHH-2284
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Steve Ebersole
Reporter: Fabio Tudone
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Core

HQL: selecting components inside components doesn't work

Created: 05/Dec/06 04:13 AM   Updated: 19/Jan/07 10:21 AM
Component/s: query-hql
Affects Version/s: 3.1.2
Fix Version/s: 3.2.2

Time Tracking:
Not Specified

File Attachments: 1. Java Archive File test.jar (16 kB)

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


 Description  « Hide
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

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Steve Ebersole added a comment - 19/Jan/07 10:21 AM
trunk / 3.2