
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
1.
test.jar (16 kB)
|
|
Environment:
|
Probably all. Tested with DB2, MySQL, HSQL + Tomcat, WAS5, DriverManager.
|
|
|
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
|
|
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 |
Show » |
|