tweise wrote:
DELETE FROM T1 WHERE T1_FK=? - delete a bunch of objects w/o instantiating them. The session methods seem to all be based on first reading the objects. Is there any better way than writing this with plain JDBC, i.e can I still refer to the mapped names rather than plain table and column names?
This is quite impossible : Object dependencies are required due to lifecycle, interceptors, cascading etc...
tweise wrote:
UPDATE T1 SET T1_COL=? - update a particular column, not the entire object (relevant for tables with a large number of columns or expensive to update columns). Is there a way that would allow me to specify the attribute(s) to update, instead of automatically updating all attributes.
<class dynamic-update="true" ...>
This is usually not an optimization since Hibernate cannot prepare queries.