Hi:
I am using Hibernate version 2.1 and Oracle 9i.
Problem 1: I initialize the configuration and create SessionFactory the following way:
Code:
cfg = new Configuration().addFile("C:/Test/Hibernate.xml")
.setProperties(properties);
sessionFactory = cfg.buildSessionFactory();
Everything works great. But when the system output is showing the following info it takes way too much time.
10:56:30,624 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended).
Problem 2: When I just flush the session or even close the session the data does not get stored in the database and it does get stored only when I close the session factory.
Code:
Session session = sessionFactory.openSession();
session.save(dataObject);
session.flush();
session.close();
sessionFactory.close();
Shouldn't the data get stored after I flush?
Thank you in advance,
Om