Does Hibenate offer a way to update or delete database table rows
without instanciating java class instances?
Hibernate does support such a construct for bulk deletions using the
Session.delete( String query ) method, but this method seems to
send one sql statement per object, what is not really performant.
I think, hibernate should support bulk update and delete via HQL,
because this should be easy to implement, high performant and
also hides the complexity of SQL from the developer (and
perhaps the end user).
txh,
Juergen
|