Ok. My Hibernate debug log file:
Code:
53647 [TP-Processor1] DEBUG org.hibernate.hql.ast.QueryTranslatorImpl - HQL: from mb.edu.segue.itt.domain.model.Inquiry inquiry, mb.edu.segue.itt.domain.model.Student student where student.SIN = :sin and inquiry.student = student.studentId
53647 [TP-Processor1] DEBUG org.hibernate.hql.ast.QueryTranslatorImpl - SQL: select inquiry0_.INQUIRY_ID as INQUIRY1_0_, student1_.STUD_ID as STUD1_1_, inquiry0_.INQUIRY_DATE as INQUIRY2_0_0_, inquiry0_.INQUIRY_ESCALATION_ID as INQUIRY3_0_0_, inquiry0_.STUD_ID as STUD4_0_0_, inquiry0_.INQUIRER_ID as INQUIRER5_0_0_, inquiry0_.INQUIRY_STAFF_ID as INQUIRY6_0_0_, inquiry0_.INQUIRY_PRIORITY_ID as INQUIRY7_0_0_, inquiry0_.INQUIRY_TYPE_ID as INQUIRY8_0_0_, inquiry0_.DETAILS as DETAILS0_0_, student1_.SIN as SIN2_1_, student1_.FIRST_NAME as FIRST3_2_1_, student1_.LAST_NAME as LAST4_2_1_, student1_.WARNING_IND as WARNING5_2_1_ from sfadb.dbo.INQUIRY inquiry0_, sfadb.dbo.STUD student1_ where student1_.SIN=? and inquiry0_.STUD_ID=student1_.STUD_ID
53647 [TP-Processor1] DEBUG org.hibernate.hql.ast.ErrorCounter - throwQueryException() : no errors
53663 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - flushing session
53663 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - processing flush-time cascades
53663 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - dirty checking collections
53663 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushing entities and processing referenced collections
53663 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - mb.edu.segue.itt.domain.model.Student.firstName is dirty
53663 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - mb.edu.segue.itt.domain.model.Student.lastName is dirty
53663 [TP-Processor1] DEBUG org.hibernate.event.def.DefaultFlushEntityEventListener - Updating entity: [mb.edu.segue.itt.domain.model.Student#1055314]
53663 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - mb.edu.segue.itt.domain.model.Sybase.ApplnVerif.requestdate is dirty
53678 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - mb.edu.segue.itt.domain.model.Sybase.ApplnVerif.verifieddate is dirty
53678 [TP-Processor1] DEBUG org.hibernate.event.def.DefaultFlushEntityEventListener - Updating entity: [mb.edu.segue.itt.domain.model.Sybase.ApplnVerif#1138910]
53678 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Processing unreferenced collections
53678 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Scheduling collection removes/(re)creates/updates
53678 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 0 insertions, 2 updates, 0 deletions to 9 objects
53678 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - listing entities:
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.VerifStatusType{vid=2, desc=Verified }
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Student{studentId=1055314, warning=N, SIN=#########, firstName=######, lastName=######}
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.Student2{sex=M, lname=###### , bdate=######, warning=false, fname=###### , sin=#########, disdate=null, disabilityind=false, postdate=false, aid=1130224, studid=1055314, cifind=Y}
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.Province2{abbr=MB, name=###### , cid=1, pid=1}
53694 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.Country2{name=###### , cid=1}
53709 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.ApplnStatusType{sid=19, desc=###### }
53709 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.VerifType{vid=2, desc=Declaration - Single - 1st }
53709 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.Address_Ver{www=null, phone=###### , currverind=true, postalcode=###### , workphone=null, cid=mb.edu.segue.itt.domain.model.Sybase.Country2#1, pid=mb.edu.segue.itt.domain.model.Sybase.Province2#1, fax=null, street2=null, userid=NOBURW , effdate=2004-06-30 20:06:51, street1=########## , aid=1130224, addressverid=2383211, email=null, city=####### }
53709 [TP-Processor1] DEBUG org.hibernate.pretty.Printer - mb.edu.segue.itt.domain.model.Sybase.ApplnVerif{requestdate=2004-07-05, manual=false, sentdate=null, message=######, staff=TAVAND , status=mb.edu.segue.itt.domain.model.Sybase.VerifStatusType#2, verifieddate=2004-08-11, vid=mb.edu.segue.itt.domain.model.Sybase.VerifType#2, applnid=1138910}
53709 [TP-Processor1] DEBUG org.hibernate.engine.ActionQueue - changes must be flushed to space: sfadb.dbo.STUD
53756 [TP-Processor1] DEBUG org.hibernate.event.def.DefaultAutoFlushEventListener - Need to execute flush
53756 [TP-Processor1] DEBUG org.hibernate.event.def.AbstractFlushingEventListener - executing flush
53756 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - Updating entity: [mb.edu.segue.itt.domain.model.Student#1055314]
53756 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
53772 [TP-Processor1] DEBUG org.hibernate.SQL - update sfadb.dbo.STUD set SIN=?, FIRST_NAME=?, LAST_NAME=?, WARNING_IND=? where STUD_ID=?
Hibernate: update sfadb.dbo.STUD set SIN=?, FIRST_NAME=?, LAST_NAME=?, WARNING_IND=? where STUD_ID=?
53772 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - preparing statement
53772 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - Dehydrating entity: [mb.edu.segue.itt.domain.model.Student#1055314]
53772 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - Updating entity: [mb.edu.segue.itt.domain.model.Sybase.ApplnVerif#1138910]
53772 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
53788 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - closing statement
53788 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
53788 [TP-Processor1] DEBUG org.hibernate.SQL - update APPLN_VERIF set VERIF_ID=?, VERIF_STATUS_TYPE_ID=?, REQUEST_DATE=?, USER_ID=?, VERIF_DATE=?, MSG_TEXT=?, SENT_DATE=?, MANUAL_REQ_IND=? where APPLN_ID=?
Hibernate: update APPLN_VERIF set VERIF_ID=?, VERIF_STATUS_TYPE_ID=?, REQUEST_DATE=?, USER_ID=?, VERIF_DATE=?, MSG_TEXT=?, SENT_DATE=?, MANUAL_REQ_IND=? where APPLN_ID=?
53788 [TP-Processor1] DEBUG org.hibernate.jdbc.AbstractBatcher - preparing statement
53788 [TP-Processor1] DEBUG org.hibernate.persister.entity.BasicEntityPersister - Dehydrating entity: [mb.edu.segue.itt.domain.model.Sybase.ApplnVerif#1138910]
53819 [TP-Processor1] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
There was some personal information in the debug stuff, so I've replaced it with #s. I do not think this information is required.