I have a simple Spring unit test where I initialize my domain tables.
test(){
initTables();
this.setComplete(); // not required but do it any way for test
}
At the end of the test, I see selects for the 3 tables, but for the 2nd table I also see x number of updates (x number of rows in 2nd table). What's happening. There are no updates in my initTables() method.
3.2:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html