Bladeren bron

fixed github issues/318

hubin 7 jaren geleden
bovenliggende
commit
13b74ed9fd

+ 2 - 0
mybatis-plus-generator/src/main/resources/templates/entity.java.ftl

@@ -26,6 +26,8 @@ import lombok.experimental.Accessors;
 @Data
 <#if superEntityClass??>
 @EqualsAndHashCode(callSuper = true)
+<#else>
+@EqualsAndHashCode(callSuper = false)
 </#if>
 @Accessors(chain = true)
 </#if>

+ 2 - 0
mybatis-plus-generator/src/main/resources/templates/entity.java.vm

@@ -24,6 +24,8 @@ import lombok.experimental.Accessors;
 @Data
 #if(${superEntityClass})
 @EqualsAndHashCode(callSuper = true)
+#else
+@EqualsAndHashCode(callSuper = false)
 #end
 @Accessors(chain = true)
 #end