diff --git a/templates/java-spring-mybatis/mybatis/mybatis_entity.java.tpl b/templates/java-spring-mybatis/mybatis/mybatis_entity.java.tpl index 95787fa..81d07ab 100644 --- a/templates/java-spring-mybatis/mybatis/mybatis_entity.java.tpl +++ b/templates/java-spring-mybatis/mybatis/mybatis_entity.java.tpl @@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; +import java.math.BigDecimal; {{$entity := join .table.Title .global.entity_suffix}} /** @@ -47,7 +48,7 @@ public class {{$entity}} implements Cloneable { } {{end}} - + @Override public {{$entity}} clone() { try { return ({{$entity}}) super.clone();