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: Creating HQL Query which works on Collections
PostPosted: Mon Nov 10, 2008 11:32 am 
Newbie

Joined: Thu May 29, 2008 6:24 am
Posts: 5
I am having following Model

Code:
Host

{
Long Id
String fqdn2
Set <HostDiscoveredReg > files
}

HostDiscoveredReg{

Long ID
Host hst
String filename

}

SoftwareRegFiles{

String filename

Set <SoftwareApps> apps

}


SoftwareRegApps{

String appName;

Set <SoftwareRegsFiles> files

}


Now I want to find the set of HostDiscoveredReg objects for a Set of Apps and Set of Hosts.

for given Set of Apps first we need to find set of SoftwareRegFiles and need to match the filename from SoftwareRegFiles to filename of HostDiscoveredReg and also match hst of HostDiscoveredReg to set of Hosts.

I am not able to create a HQL of this.

Can any one help me in this?

Ankit


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.