I like to use the above method within a set property: <code> <set name="excludedEntites" table="excluded_entities" lazy="true"> <key column="node_id"/> <any ...> </set> </code> Unfortunately the <any>-tag is not allowed within <collection>-tags. Is there a way to implement this in another way?