[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-4883) Unable to join across a component

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Feb 5 16:52:33 EST 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-4883.
-------------------------------

    Resolution: Fixed

> Unable to join across a component
> ---------------------------------
>
>                 Key: HHH-4883
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4883
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core, entity-manager, query-criteria, query-hql
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>             Fix For: 3.5.0-Next
>
>          Time Spent: 1 hour, 1 minute
>  Remaining Estimate: 0 minutes
>
> If Address is a component with a many-to-one with country, then the following hql results in invalid sql:
> from Person p join p.address a join a.country c where c.name is null
> The c.name is render as if the sql join had been rendered, which is correct.  However, the fragment "join a.country c" does not result in the physical sql join being produced which is incorrect.
> See org.hibernate.test.annotations.embedded.many2one.EmbeddableWithMany2OneTest#testJoinAcrossEmbedded as example

-- 
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