hi,
Code:
<list name="values" table="kltm_log_values" lazy="false" cascade="all">
<key column="log_id">
</key>
<index column="sequence"/>
<element column="value" type="text" not-null="false" unique="false" length="2147483647"/>
</list>
this is the mapping of the string list. i dont use session.delete(), instead i want to delete the objects directly in the database ->
session.createyQuery("delete ProjectKLTMLog log where log.id in (...)").executeUpdatee();
As far is i understand the cascade option of the hbm.xml mapping is not used with hql delete.
session.delete() works fine with cascading, but i dont want to load the objects if i can delete them directly in the database with a simple hql.