Missing Transaction For Multi-Write (ARCH8065)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key kotlin.orm.missing-transaction-for-multi-write · Severity warning · Category orm
Flags two or more save / delete calls reachable on the SAME path with no @Transactional or transaction { } around them. Writes in different branches of one when/if run one at a time and are not counted.
Incorrect
Section titled “Incorrect”fun transfer() { from.save(); to.save() }Correct
Section titled “Correct”@Transactionalfun transfer() { from.save(); to.save() }Wrap dependent writes in one transaction.