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: relational traversal
PostPosted: Tue May 31, 2011 2:24 pm 
Newbie

Joined: Tue May 31, 2011 1:44 pm
Posts: 2
hi,
I have specific scenario,

we know this query works fine,

SELECT x FROM Magazine x, IN(x.articles) y WHERE y.authorName = 'John Doe'

Now i want to add some additional condition to it, something like
x.name = 'ABC', and that should appear before IN clause, something like

SELECT x FROM Magazine x, where x.name = "ABC" AND x IN(x.articles) y WHERE y.authorName = 'John Doe'

tried many scenarios but unable to find correct syntax

please help


Top
 Profile  
 
 Post subject: Re: relational traversal
PostPosted: Thu Jun 02, 2011 6:34 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
I don't know how to help you as I don't understand exactly what you tried to do and what you would like to have, sorry. But it really looks like that you need Hibernate Search.

_________________
Sanne
http://in.relation.to/


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.