Hi all,
(hibernate 3.0)
I map a one-to-many to a Map of String keys and String values, and wish to create a criterion based on this Map, but have no clue as to how to do that:
Code:
<class name="Parent">
...
<map name="names" table="names">
<key column="fk_parent_id"/>
<map-key column="type" type="string"/>
<element type="string" column="name"/>
</map>
</parent>
now I need to query all parents with "names" of type "X" and name "Y":
Code:
session.createCriteria(Parent.class)
add( ????????? );
Thanx in advance,
Ron