[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1050?page=c...
]
Trevor Harrison commented on HHH-1050:
--------------------------------------
In response to Gopal Rathore, yes, I've seen that behavior also (query being truncated
after the union keyword).
My workaround was to use raw sql with my union statement (ie. session.createSQLQuery() ),
and put {myentityname} in the select part, and the call
query.addEntity("myentityname", MyEntity.class).
HQL Unions
----------
Key: HHH-1050
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1050
Project: Hibernate3
Issue Type: New Feature
Components: query-hql
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: antlr-rework
Add the ability to define unions in HQL. Support will be initially limited to only:
1) scalar queries : select id from Animal union select id from Car
2) the same entity : from Animal where ... union from Animal where ...
Support both UNION and UNION ALL
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira