Skip to content

Commit

Permalink
修复链式模型生成错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Feb 11, 2025
1 parent d4ec84c commit c7aa6e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public List<ClassAnnotationAttributes> handle(TableInfo tableInfo, Entity entity
boolean kotlin = globalConfig.isKotlin();
if (!kotlin) {
// 原先kt模板没有处理这些,作为兼容项
if (entity.isChain()) {
if (entity.isChain() && entity.isLombok()) {
annotationAttributesList.add(new ClassAnnotationAttributes("@Accessors(chain = true)", "lombok.experimental.Accessors"));
}
if (entity.isLombok()) {
Expand Down

0 comments on commit c7aa6e9

Please sign in to comment.