-->
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: HQL Help needed
PostPosted: Sat Aug 26, 2006 3:46 pm 
Newbie

Joined: Tue Mar 01, 2005 4:13 pm
Posts: 7
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.1

Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name="ServiceRecipient">
<id name="key" column="primaryKey">
<generator class="uuid.hex"/>
</id>
<property name="userId" not-null="true"/>
<property name="password" not-null="true"/>

<set name="aliasIDColl" cascade="all" lazy="true">

<key column="parentId"/>
<element column="externalId" type="string"/>

</set>

</class>
</hibernate-mapping>



What I want to do is. Create HQL that will return a list of Items from a second
table which match any of the strings found in the set of "aliasIDColl".

Is there a query which can automagically do this. Or do I have
to create a long OR type query string myself.

Thanks in advance.


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.