Skip to content

Commit

Permalink
修复ValueObject代码生成
Browse files Browse the repository at this point in the history
  • Loading branch information
binking338 committed Feb 21, 2025
1 parent 21e9158 commit 04b86d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ private String writeEntityClass(Map<String, Object> table, List<Map<String, Obje
" if (null == o) {\n" +
" return false;\n" +
" }\n" +
" if (!(o instanceof Address)) {\n" +
" if (!(o instanceof " + entityType + ")) {\n" +
" return false;\n" +
" }\n" +
" return hashCode() == o.hashCode();\n" +
Expand Down Expand Up @@ -2438,7 +2438,7 @@ public TemplateNode getDefaultRootSchemaExtraExtensionTemplateNode(boolean gener
" public static org.netcorepal.cap4j.ddd.domain.repo.Predicate<${Entity}> predicate(${SchemaBase}.Specification<${Entity}, ${Entity}Schema> specifier) {\n" +
" return org.netcorepal.cap4j.ddd.domain.repo.JpaPredicate.bySpecification(${Entity}.class, specify(specifier));\n" +
" }";
if(generateAggregate){
if (generateAggregate) {
template += "\n" +
"\n" +
" /**\n" +
Expand Down

0 comments on commit 04b86d3

Please sign in to comment.