-->
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.  [ 2 posts ] 
Author Message
 Post subject: EJBQL equivalent of HQL's "WITH" keyword
PostPosted: Wed Mar 15, 2006 8:27 am 
Newbie

Joined: Sun May 15, 2005 1:55 pm
Posts: 2
I was wondering how to add an additional condition on a LEFT JOIN in EJBQL. In HQL, it's possible with the ``WITH'' keyword (let me use the reference example):
Code:
from Cat as cat
    left join cat.kittens as kitten
        with kitten.bodyWeight > 10.0


Is it possible to rewrite this to pure EJBQL? I've searched the PFD on Sun and have no idea. I need the query to return all cats even if a cat has no kitten with weight > 10.0. Unfortuneatelly it's not possible to use more than one query, since we need to use ORDER BY, setFirstResult() and setMaxResults().

Thanks for your ideas.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 8:41 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
nope this won't be part of the spec

_________________
Emmanuel


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

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.