mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-06 17:18:43 +08:00
AutoMapping、ReverseAutoMapping支持配置在方法上面;
AutoMapping、ReverseAutoMapping支持defaultExpression和conditionExpression属性
This commit is contained in:
parent
867be6176a
commit
f0fa7f6e2c
@ -654,7 +654,7 @@ public class AutoMapperProcessor extends AbstractProcessor {
|
||||
|
||||
private List<AutoMappingMetadata> buildFieldReverseMappingMetadata(final TypeElement ele) {
|
||||
List<AutoMappingMetadata> list = new ArrayList<>();
|
||||
if (!ele.getKind().isClass()) {
|
||||
if (!ele.getKind().isClass() && !ele.getKind().isInterface()) {
|
||||
return list;
|
||||
}
|
||||
for (Element field : ele.getEnclosedElements()) {
|
||||
@ -718,7 +718,7 @@ public class AutoMapperProcessor extends AbstractProcessor {
|
||||
private List<AutoMappingMetadata> buildFieldMappingMetadata(final TypeElement autoMapperEle) {
|
||||
List<AutoMappingMetadata> list = new ArrayList<>();
|
||||
|
||||
if (!autoMapperEle.getKind().isClass()) {
|
||||
if (!autoMapperEle.getKind().isClass() && !autoMapperEle.getKind().isInterface()) {
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user