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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "HQL - Left Join "on" replacement?" Watch "HQL - Left Join "on" replacement?" New topic
Author

HQL - Left Join "on" replacement?

Bala Thiruppathy
Greenhorn

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

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

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HQL - Left Join "on" replacement?