[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2284) HQL: selecting components inside components doesn't work
Fabio Tudone (JIRA)
noreply at atlassian.com
Tue Dec 5 05:15:04 EST 2006
HQL: selecting components inside components doesn't work
--------------------------------------------------------
Key: HHH-2284
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2284
Project: Hibernate3
Type: Bug
Components: query-hql
Versions: 3.1.2
Environment: Probably all. Tested with DB2, MySQL, HSQL + Tomcat, WAS5, DriverManager.
Reporter: Fabio Tudone
Priority: Critical
Attachments: test.jar
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
--
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