[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4584) Query Language needs to support joins on embedded values

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Nov 17 23:23:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34651#action_34651 ] 

Steve Ebersole commented on HHH-4584:
-------------------------------------

Tucked away nice and unassuming like in a little blurb in the section 4.4.5.1 (query language inner joins) is an example which illustrates that one should be able to reference an embedded value (what Hibernate terms a component) as a join path expression terminus.

So think something like:
"... from Person p join p.name n where name.lastName = ?"
where name is a Name component.

But the BNF just above implies (arguably) that this should not be possible.  It says:
{code}
join ::= join_spec join_association_path_expression [AS] identification_variable
...
join_association_path_expression ::= join_collection_valued_path_expression | 
        join_single_valued_path_expression
...
join_single_valued_path_expression::=
identification_variable.{single_valued_embeddable_object_field.}*single_valued_object_field
{code}

Its arguable based on your interpretation of single_valued_object_field.  Sadly the spec goes on to no where define the BNF term 'single_valued_object_field' :(


> Query Language needs to support joins on embedded values
> --------------------------------------------------------
>
>                 Key: HHH-4584
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4584
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: entity-manager
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>


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