[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-675) (EJB3) OrderBy with default value has no effect

Hontvári József (JIRA) noreply at atlassian.com
Wed Oct 31 06:43:38 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28642 ] 

Hontvári József commented on ANN-675:
-------------------------------------

I would add that explicitly specifying the primary key in the annotation does work.

> (EJB3) OrderBy with default value has no effect
> -----------------------------------------------
>
>                 Key: ANN-675
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-675
>             Project: Hibernate Annotations
>          Issue Type: Bug
>    Affects Versions: 3.3.0.ga
>         Environment: Hibernate 3.2.5
>            Reporter: Hontvári József
>            Priority: Minor
>
> Accroding to the javadoc if no value is specifed in a @javax.persistence.OrderBy annotation, then the primary key of the associted entity should be used. Currently using this on a many-to-many Set results in no ORDER BY at all in the generated SQL.

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