gavin, thank you for reply.
Am i right about following?
(1) if i do not use cascade, all object for a table are inserted into database with batch, so the console display a SQL statement.
(2) if i use cascade, when insert a record of the parent table, because of cascade, the hibernate will check all cascade records od the children tables, so the console will display every insert statement.
is it OK?
if so, is it that inserted data with cascade="all" is slower than with cascade="none"?
BTW, when i use cascade="all", when i delete the record of the parent table, there have many select statements before inserted data really.is it fine?
|