This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons 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: 17249

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
I agree. Here's the link:
subject: HQL - Left Join "on" replacement?
Similar Threads
how to set fetch type at runtime ? + Hibernate
hibernate subqueries
hibernate left join fetch question
i have a Errors in Hibernate Query
Left join using on keyword (Hibernate)