Skip to main content

Transactions

Learn Transactions (JDBC Basics, Hibernate) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

A transaction groups multiple SQL statements so they succeed or fail together as one unit. We'll model the classic example: transferring money between two rows of an accounts(id, holder, balance) table, alongside our usual employees(id, name, salary, department) table for simpler examples.

More lessons in JDBC Basics