Skip to content

Commit 3931a1d

Browse files
author
Piotr Kubicki
committed
fix: fix warnings in 2 mappers with "Unmapped target property: "version"", bump mapstruct version to 1.6.3
1 parent 60e8cb7 commit 3931a1d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

pom.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
<properties>
1818
<java.version>21</java.version>
19-
<org.mapstruct.version>1.5.5.Final</org.mapstruct.version>
19+
<org.mapstruct.version>1.6.3</org.mapstruct.version>
20+
<querydsl.version>5.1.0</querydsl.version>
21+
<maven-surefire-report-plugin.version>3.5.4</maven-surefire-report-plugin.version>
22+
<spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version>
2023
</properties>
2124
<dependencies>
2225
<!-- 1) Dependencies to run the application on web-server + features to help monitor and manage a Spring Boot application: -->
@@ -54,18 +57,17 @@
5457
<scope>provided</scope>
5558
</dependency>
5659

57-
5860
<!-- 3) Query DSL advanced queries -->
5961
<dependency>
6062
<groupId>com.querydsl</groupId>
6163
<artifactId>querydsl-jpa</artifactId>
62-
<version>5.1.0</version>
64+
<version>${querydsl.version}</version>
6365
<classifier>jakarta</classifier>
6466
</dependency>
6567
<dependency>
6668
<groupId>com.querydsl</groupId>
6769
<artifactId>querydsl-apt</artifactId>
68-
<version>5.1.0</version>
70+
<version>${querydsl.version}</version>
6971
<classifier>jakarta</classifier>
7072
<scope>provided</scope>
7173
</dependency>
@@ -161,7 +163,7 @@
161163
<plugin>
162164
<groupId>org.apache.maven.plugins</groupId>
163165
<artifactId>maven-surefire-report-plugin</artifactId>
164-
<version>3.5.4</version>
166+
<version>${maven-surefire-report-plugin.version}</version>
165167
<executions>
166168
<execution>
167169
<phase>verify</phase>
@@ -179,7 +181,7 @@
179181
<plugin>
180182
<groupId>com.diffplug.spotless</groupId>
181183
<artifactId>spotless-maven-plugin</artifactId>
182-
<version>2.43.0</version>
184+
<version>${spotless-maven-plugin.version}</version>
183185
<configuration>
184186
<java>
185187
<removeUnusedImports/>
@@ -214,7 +216,7 @@
214216
<path>
215217
<groupId>com.querydsl</groupId>
216218
<artifactId>querydsl-apt</artifactId>
217-
<version>5.1.0</version>
219+
<version>${querydsl.version}</version>
218220
<classifier>jakarta</classifier>
219221
</path>
220222
<path>

src/main/java/com/capgemini/training/appointmentbooking/logic/mapper/AppointmentCtoMapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@Mapper(uses = {AppointmentMapper.class, ClientMapper.class, TreatmentCtoMapper.class})
99
public interface AppointmentCtoMapper {
1010

11+
@Mapping(target = "version", ignore = true)
1112
@Mapping(source = "appointmentEto.id", target = "id")
1213
@Mapping(source = "appointmentEto.dateTime", target = "dateTime")
1314
@Mapping(source = "appointmentEto.status", target = "status")

src/main/java/com/capgemini/training/appointmentbooking/logic/mapper/TreatmentCtoMapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public interface TreatmentCtoMapper {
1313
@Mapping(source = "treatmentEto.description", target = "description")
1414
@Mapping(source = "treatmentEto.durationMinutes", target = "durationMinutes")
1515
@Mapping(source = "specialistEto", target = "specialist")
16+
@Mapping(target = "version", ignore = true)
1617
TreatmentEntity toEntity(TreatmentCto cto);
1718

1819
@Mapping(source = "entity", target = "treatmentEto")

0 commit comments

Comments
 (0)