Commit b0d01d16 authored by hewei's avatar hewei

乐观锁插件支持自定义nextVersion

parent 1717b720
......@@ -207,7 +207,7 @@ public class OptimisticLockerPlugin extends BasePlugin implements IModelBuilderP
Method nextVersion = JavaElementGeneratorTools.generateMethod(
METHOD_NEXT_VERSION,
JavaVisibility.PUBLIC,
null,
builderClass.getType(),
new Parameter(this.versionColumn.getFullyQualifiedJavaType(), "version")
);
commentGenerator.addSetterComment(nextVersion, introspectedTable, this.versionColumn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment