@@ -35,6 +35,7 @@ public class ResultMap {
35
35
private List <ResultMapping > constructorResultMappings ;
36
36
private List <ResultMapping > propertyResultMappings ;
37
37
private Set <String > mappedColumns ;
38
+ private Set <String > mappedProperties ;
38
39
private Discriminator discriminator ;
39
40
private boolean hasNestedResultMaps ;
40
41
private boolean hasNestedQueries ;
@@ -71,6 +72,7 @@ public ResultMap build() {
71
72
throw new IllegalArgumentException ("ResultMaps must have an id" );
72
73
}
73
74
resultMap .mappedColumns = new HashSet <String >();
75
+ resultMap .mappedProperties = new HashSet <String >();
74
76
resultMap .idResultMappings = new ArrayList <ResultMapping >();
75
77
resultMap .constructorResultMappings = new ArrayList <ResultMapping >();
76
78
resultMap .propertyResultMappings = new ArrayList <ResultMapping >();
@@ -88,6 +90,10 @@ public ResultMap build() {
88
90
}
89
91
}
90
92
}
93
+ final String property = resultMapping .getProperty ();
94
+ if (property != null ) {
95
+ resultMap .mappedProperties .add (property );
96
+ }
91
97
if (resultMapping .getFlags ().contains (ResultFlag .CONSTRUCTOR )) {
92
98
resultMap .constructorResultMappings .add (resultMapping );
93
99
} else {
@@ -146,6 +152,10 @@ public Set<String> getMappedColumns() {
146
152
return mappedColumns ;
147
153
}
148
154
155
+ public Set <String > getMappedProperties () {
156
+ return mappedProperties ;
157
+ }
158
+
149
159
public Discriminator getDiscriminator () {
150
160
return discriminator ;
151
161
}
0 commit comments