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