Skip to content

Commit

Permalink
Remove check for constructor parameter names.
Browse files Browse the repository at this point in the history
For Kotlin constructors and possibly others parameters maybe unnamed and still work with our infrastructure.

Closes #1762
  • Loading branch information
schauder committed Apr 24, 2024
1 parent 13ed4ba commit ecdf703
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ protected <T> RelationalPersistentEntity<T> createPersistentEntity(TypeInformati
return entity;
}

for (Parameter<Object, RelationalPersistentProperty> parameter : creator.getParameters()) {
Assert.state(StringUtils.hasText(parameter.getName()), () -> String.format(MISSING_PARAMETER_NAME, parameter));
}

return entity;
}

Expand Down

0 comments on commit ecdf703

Please sign in to comment.