[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2284) HQL: selecting components inside components doesn't work

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Dec 5 07:32:05 EST 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2284?page=all ]

Steve Ebersole updated HHH-2284:
--------------------------------

    Fix Version: 3.2.2
       Priority: Minor  (was: Critical)

> 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
>     Assignee: Steve Ebersole
>     Priority: Minor
>      Fix For: 3.2.2
>  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