[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1821) Sorting based on an optionally associated column
Diego Pires Plentz (JIRA)
noreply at atlassian.com
Wed Aug 15 16:17:13 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27853 ]
Diego Pires Plentz commented on HHH-1821:
-----------------------------------------
Please attach a runnable test case (java and mapping). But I think that is more a user problem (and not a bug).
> Sorting based on an optionally associated column
> ------------------------------------------------
>
> Key: HHH-1821
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1821
> Project: Hibernate3
> Issue Type: Bug
> Components: query-criteria
> Affects Versions: 3.1 rc2
> Environment: JBoss 4.0.3SP1, Oracle 8.1
> Reporter: Mohammed Sadiq
> Attachments: CmnCampusSchoolMstT.hbm.xml
>
>
> Hi,
> I have a table containing 3 assocations; out of which one is optional. When I give an order by clause for the optional assocation column (with an alias name in the Criteria) I get only those records for which this column has values, other records with null values are not listed.
> As I went through the query generated by Hibernate I am surprised to see that the outer join symbol (+) was not there for this column, but was there when I try to order according to other associated columns.
> I have attached my HBM file for your reference.
> Any suggestion will be more helpful.
> Thanks & Regards
> Mohammed Sadiq
--
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