mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-06 17:18:43 +08:00
- AutoMapper 注解增加 mapperNameSuffix 属性,支持配置生成的转换接口名称增加后缀,默认规则下生成的反向转换接口同时生效; - 适配 Mapper 注解的 unmappedSourcePolicy、unmappedTargetPolicy、typeConversionPolicy、collectionMappingStrategy、nullValueMappingStrategy、nullValueIterableMappingStrategy、nullValuePropertyMappingStrategy、nullValueCheckStrategy、mappingControl 属性 - 适配 Mapping 注解的 constant、qualifiedBy、nullValueCheckStrategy、nullValuePropertyMappingStrategy、mappingControl - 适配 MapStruct 配置的 typeConversionPolicy、collectionMappingStrategy、nullValueIterableMappingStrategy、nullValueMapMappingStrategy、nullValueCheckStrategy、mappingControl、unexpectedValueMappingException、suppressTimestampInGenerated 属性 - 优化转换接口生成逻辑 - 适配同一模块中同类不同包生成类名冲突的问题 - 优化生成反向转换逻辑的默认规则,当原规则的 source 中存在 . 时,不生成相应的反向转换规则; - 修复 targetClass 同时配置父类和子类时,转换规则冲突的问题 - 修复不同模块配置类、代理类类名冲突的问题 - 增加用例
62 lines
2.2 KiB
XML
62 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>mapstruct-plus-pom</artifactId>
|
|
<groupId>io.github.linpeilie</groupId>
|
|
<version>${mapstruct-plus.version}</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>mapstruct-plus-processor</artifactId>
|
|
|
|
<properties>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.github.linpeilie</groupId>
|
|
<artifactId>mapstruct-plus</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.baidu.lbsyun</groupId>
|
|
<artifactId>javapoet</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mapstruct.tools.gem</groupId>
|
|
<artifactId>gem-api</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>${maven.compiler.source}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
<encoding>UTF-8</encoding>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>org.mapstruct.tools.gem</groupId>
|
|
<artifactId>gem-processor</artifactId>
|
|
<version>${gem.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |