Ok, I turned on debugging and it says that basically all of the loaded objects are dirty, below is the log excerpt from the last select statement to the first update:
Code:
DEBUG Thread-5 net.sf.hibernate.SQL - select comments0_.id as id__, comments0_.parent as parent__, comments0_.id as id0_, case when comments0__2_.id is not null then 1 when comments0_.id is not null then 0 end as clazz_0_, comments0_.text as text12_0_, comments0_.parent as parent12_0_, comments0__1_.modificationDate as modifica2_0_0_, comments0__1_.creationDate as creation3_0_0_, comments0__1_.createdBy as createdBy0_0_, comments0__1_.modifiedBy as modifiedBy0_0_ from sr_comment comments0_ inner join sr_bbo comments0__1_ on comments0_.id=comments0__1_.id left outer join sr_resolution comments0__2_ on comments0_.id=comments0__2_.id where comments0_.parent=?
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - preparing statement
DEBUG Thread-5 net.sf.hibernate.type.LongType - binding '20' to parameter: 1
DEBUG Thread-5 net.sf.hibernate.loader.Loader - result set contains (possibly empty) collection: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - uninitialized collection: initializing
DEBUG Thread-5 net.sf.hibernate.loader.Loader - processing result set
DEBUG Thread-5 net.sf.hibernate.loader.Loader - done processing result set (0 rows)
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - done closing: 0 open PreparedStatements, 0 open ResultSets
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - closing statement
DEBUG Thread-5 net.sf.hibernate.loader.Loader - total objects hydrated: 0
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - 1 collections were found in result set
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - collection fully initialized: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - 1 collections initialized
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - done materializing entity [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - initializing non-lazy collections
DEBUG Thread-5 us.ks.k12.topeka.serviceRequest.commands.FindServiceRequest - Calling filter()
DEBUG Thread-5 us.ks.k12.topeka.serviceRequest.commands.FindServiceRequest - Completed Command execute() calls.
DEBUG Thread-5 us.ks.k12.topeka.architecture.dao.hibernate.SessionPolicy - Entering commit(): us.ks.k12.topeka.architecture.dao.hibernate.SessionPolicy
DEBUG Thread-5 us.ks.k12.topeka.architecture.dao.hibernate.SessionPolicy - Attempt Commit Session
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - flushing session
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Flushing entities and processing referenced collections
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Team#11]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.343 to 2004-01-29 12:02:15.87
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers#11], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments#11], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.notifications#11], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.notifications#11]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee#10]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.355 to 2004-01-29 12:02:15.928
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments#10], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications#10], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.comments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#20]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.405 to 2004-01-29 12:02:15.961
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#20], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#20], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#20], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#20], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#20]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.comments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#17]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.477 to 2004-01-29 12:02:15.998
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#17], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#17], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#17], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#17], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#17]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.comments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#18]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.555 to 2004-01-29 12:02:16.03
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#18], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#18], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#18], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#18], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#18]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.comments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#21]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.597 to 2004-01-29 12:02:16.047
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#21], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#21], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#21], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#21], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#21]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.comments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest#22]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.666 to 2004-01-29 12:02:16.081
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#22], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#22], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#22], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#22], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.affectedServices#22]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Team#25]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.703 to 2004-01-29 12:02:16.139
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers#25], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments#25], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.notifications#25], was: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.notifications#25]
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments
DEBUG Thread-5 net.sf.hibernate.impl.WrapVisitor - Wrapped collection in role: us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments is dirty
DEBUG Thread-5 net.sf.hibernate.persister.AbstractEntityPersister - us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications is dirty
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee#24]
DEBUG Thread-5 net.sf.hibernate.engine.Versioning - Incrementing: 2004-01-29 11:57:53.726 to 2004-01-29 12:02:16.169
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments#24], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection found: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications#24], was: [<unreferenced>]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Processing unreferenced collections
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers#11]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments#11]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#17]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#17]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#17]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#18]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#18]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#18]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#21]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#21]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#21]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#22]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#22]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#22]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.teamMembers#25]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Team.assignments#25]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments#24]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications#24]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.assignments#10]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Employee.serviceNotifications#10]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.notificationList#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest.tasks#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Collection dereferenced: [us.ks.k12.topeka.serviceRequest.businessObjects.Assignable.comments#20]
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Scheduling collection removes/(re)creates/updates
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Flushed: 0 insertions, 9 updates, 0 deletions to 9 objects
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - Flushed: 23 (re)creations, 0 updates, 23 removals to 53 collections
DEBUG Thread-5 net.sf.hibernate.impl.Printer - listing entities:
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest{comments=[], modifiedBy=cn=user,ou=somewhere,o=else, assignedTo=Employee#10, modificationDate=29 January 2004 12:02:16, planDate=29 January 2004 00:00:00, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 22:28:22, team=Team#11, status=1, tasks=[], id=22, completionDate=10 February 2004 00:00:00, requestedDate=29 January 2004 00:00:00, notificationList=[], reviewDate=03 February 2004 00:00:00, description=This is yet another description, center=0, affectedServices=uninitialized, subject=This is service Request six}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest{comments=[], modifiedBy=cn=user,ou=somewhere,o=else, assignedTo=null, modificationDate=29 January 2004 12:02:16, planDate=03 February 2004 00:00:00, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 21:40:43, team=Team#11, status=1, tasks=[], id=21, completionDate=10 February 2004 00:00:00, requestedDate=03 February 2004 00:00:00, notificationList=[], reviewDate=03 February 2004 00:00:00, description=It appears that the findUnassignedAssignables command fails if more than one exists. ( FIXED ), center=0, affectedServices=uninitialized, subject=Test Five}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.Employee{receiveTeamNotifications=true, userDN=cn=tbriggs,ou=staff,o=tps, modifiedBy=cn=user,ou=somewhere,o=else, modificationDate=29 January 2004 12:02:16, serviceNotifications=[], createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 22:31:02, team=Team#25, id=24, firstName=Tod, lastName=Briggs, assignments=[], roomNumber=10, center=1100, email=tbriggs@topeka.k12.ks.us, middleName=, phoneNumber=555-555-5555}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.Team{assignments=[ServiceRequest#21, ServiceRequest#20, ServiceRequest#18, ServiceRequest#17, ServiceRequest#22], modifiedBy=cn=user,ou=somewhere,o=else, modificationDate=29 January 2004 12:02:15, notifications=uninitialized, teamMembers=[], teamLeader=null, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 15:08:45, name=Test One, id=11}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest{comments=[], modifiedBy=cn=user,ou=somewhere,o=else, assignedTo=Employee#10, modificationDate=29 January 2004 12:02:16, planDate=27 January 2004 00:00:00, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 21:20:21, team=Team#11, status=1, tasks=[], id=18, completionDate=10 February 2004 00:00:00, requestedDate=27 January 2004 00:00:00, notificationList=[], reviewDate=03 February 2004 00:00:00, description=This is the third servicerequest. It is assigned to both a team and an employee, center=0, affectedServices=uninitialized, subject=Test Three}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest{comments=[], modifiedBy=cn=user,ou=somewhere,o=else, assignedTo=null, modificationDate=29 January 2004 12:02:15, planDate=27 January 2004 00:00:00, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 21:18:38, team=Team#11, status=1, tasks=[], id=17, completionDate=10 February 2004 00:00:00, requestedDate=27 January 2004 00:00:00, notificationList=[], reviewDate=03 February 2004 00:00:00, description=This is the second test ServiceRequest, center=0, affectedServices=uninitialized, subject=Test Two}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest{comments=[], modifiedBy=cn=user,ou=somewhere,o=else, assignedTo=Employee#10, modificationDate=29 January 2004 12:02:15, planDate=01 February 2004 00:00:00, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 21:36:54, team=Team#11, status=1, tasks=[], id=20, completionDate=10 February 2004 00:00:00, requestedDate=01 February 2004 00:00:00, notificationList=[], reviewDate=03 February 2004 00:00:00, description=Hum. Need to find out how to make this larger that 255 chars. This is its description. It is not very long, but will do the job nicely. As you can see it is just trivial meaningless babble used to occupy a bit of space on the form., center=0, affectedServices=uninitialized, subject=Test Four}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.Team{assignments=[], modifiedBy=cn=user,ou=somewhere,o=else, modificationDate=29 January 2004 12:02:16, notifications=uninitialized, teamMembers=[Employee#24, Employee#10], teamLeader=Employee#10, createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 22:31:57, name=Networking, id=25}
DEBUG Thread-5 net.sf.hibernate.impl.Printer - us.ks.k12.topeka.serviceRequest.businessObjects.Employee{receiveTeamNotifications=true, userDN=cn=user,ou=somewhere,o=else, modifiedBy=cn=user,ou=somewhere,o=else, modificationDate=29 January 2004 12:02:15, serviceNotifications=[], createdBy=cn=user,ou=somewhere,o=else, creationDate=27 January 2004 15:05:51, team=Team#25, id=10, firstName=Chad, lastName=Skinner, assignments=[ServiceRequest#20, ServiceRequest#18, ServiceRequest#22], roomNumber=110, center=110, email=cskinne1@topeka.k12.ks.us, middleName=W, phoneNumber=555-4444-333}
DEBUG Thread-5 net.sf.hibernate.impl.SessionImpl - executing flush
DEBUG Thread-5 net.sf.hibernate.persister.NormalizedEntityPersister - Updating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Team#11]
DEBUG Thread-5 net.sf.hibernate.persister.NormalizedEntityPersister - Existing version: 2004-01-29 11:57:53.343 -> New version: 2004-01-29 12:02:15.87
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - about to open: 0 open PreparedStatements, 0 open ResultSets
DEBUG Thread-5 net.sf.hibernate.SQL - update sr_bbo set modificationDate=?, creationDate=?, createdBy=?, modifiedBy=? where id=? and modificationDate=?
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - preparing statement
DEBUG Thread-5 net.sf.hibernate.persister.NormalizedEntityPersister - Dehydrating entity: [us.ks.k12.topeka.serviceRequest.businessObjects.Team#11]
DEBUG Thread-5 net.sf.hibernate.type.TimestampType - binding '29 January 2004 12:02:15' to parameter: 1
DEBUG Thread-5 net.sf.hibernate.type.TimestampType - binding '27 January 2004 15:08:45' to parameter: 2
DEBUG Thread-5 net.sf.hibernate.type.StringType - binding 'cn=user,ou=somewhere,o=else' to parameter: 3
DEBUG Thread-5 net.sf.hibernate.type.StringType - binding 'cn=user,ou=somewhere,o=else' to parameter: 4
DEBUG Thread-5 net.sf.hibernate.type.LongType - binding '11' to parameter: 5
DEBUG Thread-5 net.sf.hibernate.type.TimestampType - binding '29 January 2004 11:57:53' to parameter: 6
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - done closing: 0 open PreparedStatements, 0 open ResultSets
DEBUG Thread-5 net.sf.hibernate.impl.BatcherImpl - closing statement
The problem is that all I am doing is open the session find the ServiceRequest and close the session. I am guessing that I have something wrong with my mapping document which follows:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="us.ks.k12.topeka.serviceRequest.businessObjects.BaseBusinessObject" table="sr_bbo">
<id column="id" name="id" type="long" unsaved-value="-1">
<generator class="sequence">
<param name="sequence">sr_seq_oid</param>
</generator>
</id>
<timestamp name="modificationDate"/>
<property name="creationDate" type="timestamp"/>
<property name="createdBy" length="30" />
<property name="modifiedBy" length="30" />
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Team" table="sr_team">
<key column="id" />
<property name="name" />
<many-to-one name="teamLeader" class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" column="team_leader" not-null="false"/>
<set name="teamMembers" inverse="true" lazy="true">
<key column="team"/>
<one-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" />
</set>
<set name="assignments" inverse="true" lazy="true" >
<key column="team" />
<one-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Assignable" />
</set>
<set name="notifications" inverse="true" lazy="true" table="sr_service_team" >
<key column="teamid" />
<many-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Service" column="serviceid" />
</set>
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" table="sr_employee" >
<key column="id" />
<property name="userDN" />
<property name="firstName" />
<property name="middleName" />
<property name="lastName" />
<property name="email" />
<property name="center" />
<property name="phoneNumber" />
<property name="roomNumber" />
<property name="receiveTeamNotifications" />
<many-to-one name="team" class="us.ks.k12.topeka.serviceRequest.businessObjects.Team" column="team" not-null="false"/>
<set name="assignments" inverse="true" lazy="true">
<key column="assignedto" />
<one-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Assignable" />
</set>
<set name="serviceNotifications" table="sr_service_employee" inverse="true" lazy="true">
<key column="employeeid" />
<many-to-many column="servicid" class="us.ks.k12.topeka.serviceRequest.businessObjects.Service" />
</set>
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Assignable" table="sr_assignable" >
<key column="id" />
<property name="subject" />
<property name="description" />
<property name="center" />
<property name="status" />
<many-to-one name="team" class="us.ks.k12.topeka.serviceRequest.businessObjects.Team" column="team" not-null="false" />
<many-to-one name="assignedTo" class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" column="assignedto" not-null="false" />
<set name="comments" inverse="true" lazy="true">
<key column="parent" />
<one-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Comment" />
</set>
<set name="affectedServices" inverse="true" lazy="true" table="sr_assignable_service">
<key column="task" />
<many-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Service" />
</set>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest" table="sr_srequest" >
<key column="id" />
<property name="requestedDate" />
<property name="planDate" />
<property name="reviewDate" />
<property name="completionDate" />
<!-- NEED TO ADD CONTACTS -->
<!-- NEED TO ADD REVIEWS -->
<set name="notificationList" inverse="true" lazy="true" table="sr_notificationset" >
<key column="servicerequest" />
<many-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" column="employee" />
</set>
<set name="tasks" inverse="true" lazy="true">
<key column="serviceRequest" />
<one-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Task" />
</set>
<!-- COMMENTS ADDED BY ASSIGNABLE -->
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Task" table="sr_task">
<key column="id" />
<property name="startDate" />
<property name="completionDate" />
<property name="riskLevel" />
<property name="percentComplete" />
<property name="estimatedHours" />
<many-to-one name="serviceRequest" class="us.ks.k12.topeka.serviceRequest.businessObjects.ServiceRequest" column="serviceRequest" not-null="false" />
<!-- COMMENTS ADDED BY ASSIGNABLE -->
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.IncidentReport" table="sr_incident">
<key column="id" />
<!-- <property name="subject" /> -->
<!-- <property name="description" /> -->
<!-- <property name="center" /> -->
<!-- <property name="status" /> -->
<property name="completionDate" />
<property name="incidentDate" />
<!-- <many-to-one name="team" class="us.ks.k12.topeka.serviceRequest.businessObjects.Team" column="team" not-null="false" /> -->
<!-- <many-to-one name="assignedTo" class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" column="assignedto" not-null="false" /> -->
<!-- COMMENTS ADDED BY ASSIGNABLE -->
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.ServiceOutage" table="sr_outage">
<key column="id" />
<!-- <property name="subject" /> -->
<!-- <property name="description" /> -->
<!-- <property name="center" /> -->
<!-- <property name="status" /> -->
<property name="eventDate" />
<property name="completionDate" />
<!-- <many-to-one name="team" class="us.ks.k12.topeka.serviceRequest.businessObjects.Team" column="team" not-null="false" /> -->
<!-- <many-to-one name="assignedTo" class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" column="assignedto" not-null="false" /> -->
<!-- COMMENTS ADDED BY ASSIGNABLE -->
</joined-subclass>
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Comment" table="sr_comment">
<key column="id" />
<property name="text" />
<many-to-one name="parent" class="us.ks.k12.topeka.serviceRequest.businessObjects.Assignable" column="parent" not-null="false" />
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Resolution" table="sr_resolution">
<key column="id" />
</joined-subclass>
</joined-subclass>
<joined-subclass name="us.ks.k12.topeka.serviceRequest.businessObjects.Service" table="sr_service" >
<key column="id" />
<property name="name" />
<set name="affectedTeams" table="sr_service_team" lazy="true">
<key column="serviceid" />
<many-to-many column="teamid" class="us.ks.k12.topeka.serviceRequest.businessObjects.Team" />
</set>
<set name="notifiedEmployees" table="sr_service_employee" lazy="true">
<key column="serviceid" />
<many-to-many column="employeeid" class="us.ks.k12.topeka.serviceRequest.businessObjects.Employee" />
</set>
<!--
<set name="affectedService" inverse="true" lazy="true">
<key column="task" />
<many-to-many class="us.ks.k12.topeka.serviceRequest.businessObjects.Service" />
</set>
-->
</joined-subclass>
</class>
</hibernate-mapping>
Any help is appreciated.
--Chad