[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2802) Support HQL style order by (JPA @OrderBy)

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Oct 15 18:20:04 EDT 2008


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

Steve Ebersole commented on HHH-2802:
-------------------------------------

According to section 9.1.35 OrderBy Annotation of the 2.0 edr spec:
<quote>
A property or field name specified as an orderby_item must correspond to a basic persistent property
or field of the associated class or embedded class within it. The properties or fields used in the ordering
must correspond to columns for which comparison operators are supported.
The dot (".") notation is used to refer to an attribute within an embedded attribute. The value of each
identifier used with the dot notation is the name of the respective embedded field or property.
</quote>
So basically only need to be concerned with references to value-type properties.  If a property is named with DOT syntax, that dereference should be dereferencing a component to a value-type property of the component.

> Support HQL style order by (JPA @OrderBy)
> -----------------------------------------
>
>                 Key: HHH-2802
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2802
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>            Reporter: Emmanuel Bernard
>            Assignee: Steve Ebersole
>             Fix For: 3.3.x
>
>
> Hibernate Annotations works around the lack of ability to define Order by clause using properties rather than columns by doing the translation at configuration time.
> Unfortunately, this cannot take alias into account.
> So moving this logic to the core would make sense

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