From ca2f979eafc9e34d5c31c2ea12d16b0a176b0291 Mon Sep 17 00:00:00 2001 From: GangCheng Date: Mon, 27 May 2024 14:39:05 +0800 Subject: [PATCH] fix annotation import error in GeneratedModelCustomizer --- .../support/generator/support/GeneratedModelCustomizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java b/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java index 94a523db..3719aeb8 100644 --- a/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java +++ b/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java @@ -84,7 +84,7 @@ public void customizeLombok(TopLevelClass topLevelClass, IntrospectedTable intro String lombokImport; String lombokAnnotation; if(lombokAnnotationName.contains("(")){ - String pureAnnotation = StringUtils.substringBetween(lombokAnnotationName, ".", "("); + String pureAnnotation = StringUtils.substringBefore(StringUtils.substringAfterLast(StringUtils.substringBefore(lombokAnnotationName,"("),"."), "("); lombokImport = StringUtils.substringBefore(lombokAnnotationName,"("); lombokAnnotation = StringUtils.substringAfter(lombokAnnotationName, StringUtils.substringBeforeLast(lombokImport, pureAnnotation)