java - JPA Multiple commit within one transaction -


can have multiple commits within 1 jpa transaction ? i'm using jpa hibernate. correct me if i'm wrong commit won't end transaction ? replay.

a transaction context created within execution environment groups multiple commits (and/or dml operations on database) in 1 execution unit - if 1 goes wrong, work done in transaction context discarded.

so in short: can have multiple operations in 1 transaction, when commit transaction changes applied database.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -