@@ -69,6 +69,10 @@ public T apply(Row row, RowMetadata metadata) {
69
69
70
70
for (JdbcPersistentProperty property : entity ) {
71
71
72
+ if (entity .isConstructorArgument (property )) {
73
+ continue ;
74
+ }
75
+
72
76
if (property .isCollectionLike ()) {
73
77
throw new UnsupportedOperationException ();
74
78
} else if (property .isMap ()) {
@@ -105,7 +109,7 @@ private Object readFrom(Row row, JdbcPersistentProperty property, String prefix)
105
109
}
106
110
}
107
111
108
- private Class <?> getType (JdbcPersistentProperty property ) {
112
+ private static Class <?> getType (JdbcPersistentProperty property ) {
109
113
return ClassUtils .resolvePrimitiveIfNecessary (property .getActualType ());
110
114
}
111
115
@@ -127,7 +131,9 @@ private <S> S readEntityFrom(Row row, PersistentProperty<?> property) {
127
131
ConvertingPropertyAccessor propertyAccessor = new ConvertingPropertyAccessor (accessor , conversions );
128
132
129
133
for (JdbcPersistentProperty p : entity ) {
130
- propertyAccessor .setProperty (p , readFrom (row , p , prefix ));
134
+ if (!entity .isConstructorArgument (property )) {
135
+ propertyAccessor .setProperty (p , readFrom (row , p , prefix ));
136
+ }
131
137
}
132
138
133
139
return instance ;
@@ -142,10 +148,10 @@ private <S> S createInstance(Row row, String prefix, JdbcPersistentEntity<S> ent
142
148
@ RequiredArgsConstructor
143
149
private static class RowParameterValueProvider implements ParameterValueProvider <JdbcPersistentProperty > {
144
150
145
- @ NonNull private final Row resultSet ;
146
- @ NonNull private final JdbcPersistentEntity <?> entity ;
147
- @ NonNull private final ConversionService conversionService ;
148
- @ NonNull private final String prefix ;
151
+ private final @ NonNull Row resultSet ;
152
+ private final @ NonNull JdbcPersistentEntity <?> entity ;
153
+ private final @ NonNull ConversionService conversionService ;
154
+ private final @ NonNull String prefix ;
149
155
150
156
/*
151
157
* (non-Javadoc)
0 commit comments