Hi,
I've become familiar with the basics of Hibernate through some various online tutorials. However, there's one concept which none of the tutorials introduce, but which often is mentioned on this forum: transactions.
What is the consequence of not using transactions, but simply performing the whole SELECT/UPDAT/DELETE process withouth commencing a transaction? For instance, a tutorial gives this example:
Code:
(1) get session from session factory
(2) perform database action
(3) flush session (on UPDATE and DELETE)
(4) close session
There isn't any transactions involved here. However, on the other side, everything i've been trying out works just fine withouth transactions.
So, my question would be: why would i use transactions and what good do they do?