Skip to content

Commit ecdf703

Browse files
committed
Remove check for constructor parameter names.
For Kotlin constructors and possibly others parameters maybe unnamed and still work with our infrastructure. Closes #1762
1 parent 13ed4ba commit ecdf703

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/JdbcMappingContext.java

-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ protected <T> RelationalPersistentEntity<T> createPersistentEntity(TypeInformati
6969
return entity;
7070
}
7171

72-
for (Parameter<Object, RelationalPersistentProperty> parameter : creator.getParameters()) {
73-
Assert.state(StringUtils.hasText(parameter.getName()), () -> String.format(MISSING_PARAMETER_NAME, parameter));
74-
}
75-
7672
return entity;
7773
}
7874

0 commit comments

Comments
 (0)