Thanks for the reply.
Having got the connection, anyway I could put my own sql and those generated by Hibernate into one logical transaction.
eg
Code:
hsf = new Configuration().configure().buildSessionFactory();
Session session = hsf.openSession();
Connection dbConn = session.connection();
Statement stmnt = dbConn.createStatement();
tx = session.beginTransaction();
stmnt.execute("delete markit_entity_mappings");
// load objects from XML file via digester into arrayList
// Loop thru arrayList and persist each object.
// omited code for above here
session.save(mem)
tx.commit
Also in my opinion i think it would have been cleaner to use session.beginTransaction() and session.commitTransaction() (as I thikn nested trasaction are now allowed????)
Anyway would appreciate if you could advise on how I mix manual issues SQL statements with that generated by HSQL under one logical transaction.
Could I do the following?
issue my manual SQL stament (this should start the transaction
do some Hiberate stuff
issue a commit from the connection I obtained via session.connection()
Many Thanks
Naz