Hibernate version:2.1.7
Session session = sessionFactory.openSession(); session.save(cd); session.flush(); session.close();
Database: SQL Server2000
I executed the above code , but the data object (cd) did not get inserted inside the DB.
Then I tried with the below code,
session.connection().setAutoCommit(true);
to set AutoCommit to true for the connection used by the session instance.
Now I could able to see the inserted records inside the DB.
Is there is any provision to configure the autocommit property via a configuration file?
|