debug log:
Code:
00:24:14,034 DEBUG SessionImpl:558 - opened session
00:24:14,034 DEBUG SessionImpl:1141 - deleting a transient instance
00:24:14,034 DEBUG SessionImpl:1296 - collection dereferenced while transient [portal.bo.Account.addresses#1]
00:24:14,044 DEBUG SessionImpl:1188 - deleting [portal.bo.Account#1]
00:24:14,044 DEBUG Cascades:497 - processing cascades for: portal.bo.Account
00:24:14,044 DEBUG Cascades:524 - cascading to collection: portal.bo.Account.addresses
00:24:14,044 DEBUG Cascades:60 - cascading to delete()
00:24:14,044 DEBUG Cascades:341 - id unsaved-value strategy NULL
00:24:14,044 DEBUG SessionImpl:1141 - deleting a transient instance
00:24:14,044 DEBUG SessionImpl:1188 - deleting [portal.bo.Address#2]
00:24:14,054 DEBUG Cascades:60 - cascading to delete()
00:24:14,054 DEBUG Cascades:341 - id unsaved-value strategy NULL
00:24:14,054 DEBUG SessionImpl:1141 - deleting a transient instance
00:24:14,054 DEBUG SessionImpl:1188 - deleting [portal.bo.Address#1]
00:24:14,054 DEBUG Cascades:60 - cascading to delete()
00:24:14,054 DEBUG Cascades:341 - id unsaved-value strategy NULL
00:24:14,064 DEBUG SessionImpl:1141 - deleting a transient instance
00:24:14,064 DEBUG SessionImpl:1188 - deleting [portal.bo.Address#3]
00:24:14,064 DEBUG Cascades:506 - done processing cascades for: portal.bo.Account
00:24:14,074 DEBUG Cascades:497 - processing cascades for: portal.bo.Account
00:24:14,074 DEBUG Cascades:506 - done processing cascades for: portal.bo.Account
00:24:14,074 DEBUG SessionImpl:2266 - flushing session
00:24:14,074 DEBUG SessionImpl:2459 - Flushing entities and processing referenced collections
00:24:14,074 DEBUG WrapVisitor:81 - Wrapped collection in role: portal.bo.Account.addresses
00:24:14,084 DEBUG AbstractEntityPersister:283 - portal.bo.Account.person1 is dirty
00:24:14,084 DEBUG AbstractEntityPersister:283 - portal.bo.Account.person2 is dirty
00:24:14,084 DEBUG SessionImpl:2550 - Updating deleted entity: [portal.bo.Account#1]
00:24:14,084 DEBUG SessionImpl:2800 - Processing unreferenced collections
00:24:14,084 DEBUG SessionImpl:2814 - Scheduling collection removes/(re)creates/updates
00:24:14,084 DEBUG SessionImpl:2290 - Flushed: 0 insertions, 1 updates, 4 deletions to 4 objects
00:24:14,084 DEBUG SessionImpl:2295 - Flushed: 0 (re)creations, 0 updates, 1 removals to 1 collections
00:24:14,094 DEBUG Printer:75 - listing entities:
00:24:14,094 DEBUG Printer:82 - portal.bo.Address{account=Account#1, id=1}
00:24:14,094 DEBUG Printer:82 - portal.bo.Account{addresses=[Address#2, Address#1, Address#3], person1=Person{address=Address#1}, person2=Person{address=Address#2}, id=1}
00:24:14,094 DEBUG Printer:82 - portal.bo.Address{account=Account#1, id=2}
00:24:14,104 DEBUG Printer:82 - portal.bo.Address{account=Account#1, id=3}
00:24:14,104 DEBUG SessionImpl:2379 - executing flush
00:24:14,104 DEBUG EntityPersister:629 - Updating entity: [portal.bo.Account#1]
00:24:14,104 DEBUG BatcherImpl:203 - about to open: 0 open PreparedStatements, 0 open ResultSets
00:24:14,125 DEBUG SQL:229 - update account set ... (SHORTENED, SQL STATEMENT FOR DEREFERENCING ADDRESSES, OF COURSE THIS FAILS)
00:24:14,125 DEBUG BatcherImpl:252 - preparing statement
00:24:14,125 DEBUG EntityPersister:384 - Dehydrating entity: [portal.bo.Account#1]
00:24:14,185 DEBUG BatcherImpl:28 - Adding to batch
00:24:14,185 DEBUG BatcherImpl:50 - Executing batch size: 1
00:24:14,185 DEBUG BatcherImpl:210 - done closing: 0 open PreparedStatements, 0 open ResultSets
00:24:14,185 DEBUG BatcherImpl:272 - closing statement
00:24:14,195 ERROR SessionImpl:2399 - Could not synchronize database state with session
00:24:14,195 DEBUG SessionImpl:576 - closing session
00:24:14,195 DEBUG SessionImpl:3371 - disconnecting session
00:24:14,195 DEBUG SessionImpl:594 - transaction completion