Sorting based on an optionally associated column
------------------------------------------------
Key: HHH-1821
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1821
Project: Hibernate3
Type: Bug
Components: query-criteria
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
|