aspose file tools
The moose likes Object Relational Mapping and the fly likes HQL - Left Join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "HQL - Left Join "on" replacement?" Watch "HQL - Left Join "on" replacement?" New topic

HQL - Left Join "on" replacement?

Bala Thiruppathy

Joined: Oct 30, 2007
Posts: 7
Hibernate version: Hibernate 3

This is my SQL query:

SELECT notification.div_id, notification.pa_no paNumber , criteria.pa_criteria_desc paOutboundCriteriaDesc
FROM pa_outbound_notification notification
Left JOIN pa_outbound_criteria criteria
ON notification.pa_criteria_desc LIKE criteria.pa_criteria_desc
where notification.div_id = '101'

What would be the logical replacement of HQL?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

What are you Java objects that are mapped, please post them?


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
It is sorta covered in the JavaRanch Style Guide.
subject: HQL - Left Join "on" replacement?
jQuery in Action, 3rd edition