-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Need help expressing this SQL in HQL
PostPosted: Tue Jun 03, 2008 3:14 pm 
Newbie

Joined: Wed Apr 02, 2008 2:25 pm
Posts: 6
Hi,

Please help me convert this query into HQL:

Code:
select * from properties p inner join property_values v
  on p.id=v.property_id
    left outer join property_mappings m
      on (v.id=m.property_value_id and m.property_mapping_group_id=?);


I tried the following, but looks like HQL doesn't use on in its join syntax

Code:
from Property p join p.values as v left outer join v.mappings as m on m.propertyMappingGroupId=:propertyMappingGroupId


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.