-->
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: a question about HQL
PostPosted: Mon Sep 29, 2003 8:15 am 
Newbie

Joined: Tue Sep 16, 2003 4:59 am
Posts: 10
Hello,

imagine that I have the following object

public class Process {
...
Set ActivityList;
...
}

public class Activity {
...
Process process;
String name;
...
}

I want to use HQL to retrieve all Processes where activities with name equals "BLABLA"

with a WHERE clause expression like

... WHERE process.activityList.name="BLABLA"

Is the WHERE clause syntax correct ?? Meaning is it possible to use these syntax with a Set ?

Thx in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 29, 2003 8:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
no. please see the FAQ and the HQL documentation. You need to use a JOIN in the FROM clause.


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.