|
I define a simple mapping with a named delete query:
<!DOCTYPE hibernate-mapping PUBLIC "-
"http:>
<hibernate-mapping>
<class name="Person" table="person">
<id name="id" column="id" type="long" unsaved-value="null" />
</class>
<query name="removeAll">delete from Person p</query>
</hibernate-mapping>
When I build the session factory, an error is logged when the parser finds there is no 'where' clause:
although the exception isn't propagated.
If I change the query to:
then no error is logged.
|