Hey,
Lets assume a scenario like this:
Code:
WebService
for i=0 - > Events.size Do
EventDAO.save(Events[i]))
Code:
EventDAO do:
session.open
sessions.save(event)
session.comit
session.close
can i define that hibernate will do "batching of statements" in order to have better performance?
Does it means that if i call to session.comit it commit all the batch of statements that he has?
I dont want to open the session in the WebService , because i want the DAO to handle this and i dont want that if saving of one event fails it will lost all the events.
How can i know what is the actions that was done in the DB side?(I mean that i want to know only sql that was runinig against the DB and not against cache or somethink like this)
Thank you very much.
Sorry for my English