Skip to content

Commit 21e8d9a

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 spring-projects#1762
1 parent dafe448 commit 21e8d9a

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

Lines changed: 0 additions & 4 deletions
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)