hi all, i have this objects:

Parent
{
   int ID;
   IList<Child> Children;
}

Child
{
  int ID;
}

i'm using this map for the collection
<list name="Children"
          table="Children_Map">
      <key column="parent_id" />
      <index column="item_index"/>
      <many-to-many class="Child"
                    column="child_Id">
      </many-to-many>
</list>

i need a hql query to find if a child is referenced by at least one
Parent,

with sql what i need is samething as

select 1 from Children_Map map
where map.child_ID = @ChildID

thanks
it's possible to have a similar sql with an hql query?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to