transactions

This commit is contained in:
2025-10-24 00:48:19 +02:00
parent f6cae99d59
commit 988706c996
6 changed files with 34 additions and 1 deletions

View File

@@ -139,6 +139,17 @@ public#if( $entity.isAbstract() ) abstract#end class ${entity.name}#if( $entity.
return this;
}
public $entity.name tx(CommandWrapper wrapper) {
setTransaction(wrapper.getTransaction());
setRequest(java.util.UUID.randomUUID().toString());
return this;
}
public $entity.name commit() {
setCommit(true);
return this;
}
public ${entity.name}(CommandWrapper wrapper) {
this();
copyIds(wrapper);

View File

@@ -146,6 +146,18 @@ public#if( $entity.isAbstract() ) abstract#end class ${entity.name}#if( $entity.
return this;
}
public $entity.name tx(CommandWrapper wrapper) {
setTransaction(wrapper.getTransaction());
setRequest(java.util.UUID.randomUUID().toString());
return this;
}
public $entity.name commit() {
setCommit(true);
return this;
}
public ${entity.name}(CommandWrapper wrapper) {
this();
copyIds(wrapper);