transactions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user