-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathDisableSourcePropertyInspectionOnMapTest.java
More file actions
54 lines (43 loc) · 1.86 KB
/
Copy pathDisableSourcePropertyInspectionOnMapTest.java
File metadata and controls
54 lines (43 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at https://www.apache.org/licenses/LICENSE-2.0
*/
import java.time.LocalDate;
import java.util.Map;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
@Mapper
abstract class Issue243Mapper {
@Mapping(source = "exDate", target = "exDate")
@Mapping(source = "payDate", target = "payDate")
public abstract CorporateAction mapWithStringKeyMap(Map<String, String> rowValues);
@Mapping(source = "exDate", target = "exDate")
public abstract void updateWithStringKeyMap(Map<String, String> rowValues, @MappingTarget CorporateAction target);
@Mapping(source = "exDate", target = "exDate")
public abstract CorporateAction mapWithObjectValueMap(Map<String, Object> rowValues);
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
public abstract CorporateAction mapWithIntegerKeyMap(Map<Integer, String> rowValues);
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
public abstract void updateWithIntegerKeyMap(
Map<Integer, String> rowValues,
@MappingTarget CorporateAction target
);
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
@Mapping(source = "payDate", target = "payDate")
public abstract CorporateAction mapWithMultipleSources(
Map<String, String> rowValues,
LocalDate payDate
);
@Mapping(source = "rowValues.exDate", target = "exDate")
@Mapping(source = "payDate", target = "payDate")
public abstract CorporateAction mapWithMultipleSourcesAndMapName(
Map<String, String> rowValues,
LocalDate payDate
);
}
class CorporateAction {
public LocalDate exDate;
public LocalDate payDate;
}