不会更新该游离对象,但是可以级联删除该游离对象关键的对象。
update
t_student
set
teacherid=null
where
teacherid=?
17:34:40,079 DEBUG AbstractCollectionPersister:1127 - done deleting collection
17:34:40,080 DEBUG AbstractBatcher:66 - Executing batch size: 1
17:34:40,082 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
17:34:40,083 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
17:34:40,083 DEBUG SQL:111 -
delete
from
t_student
where
id=?
17:34:40,084 DEBUG AbstractBatcher:248 - reusing prepared statement
17:34:40,084 DEBUG SQL:111 -
delete
from
t_student
where
id=?
17:34:40,085 DEBUG AbstractBatcher:66 - Executing batch size: 2
17:34:40,088 DEBUG Expectations:77 - success of batch update unknown: 0
17:34:40,088 DEBUG Expectations:77 - success of batch update unknown: 1
17:34:40,088 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
17:34:40,088 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
17:34:40,089 DEBUG SQL:111 -
delete
from
t_teacher
where
id=?