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.