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
Post a Comment