Skip to content

Check for type compatibility of parameter types with their corresponding entity properties [DATACMNS-372] #844

Open
@spring-projects-issues

Description

@spring-projects-issues

Thomas Darimont opened DATACMNS-372 and commented

At present we ensure at bootstrapping time that every property that is derived from a Repository finder method like findByFirstnameAndLastname(String firstname, String lastname) -> firstname, lastname is present on the persistent entity.

An additional check that we currently do not do would be to test whether the type of the corresponding parameter of that particular finder method is compatible with the type of the property of the persistent entity.

This would allow us to find potential errors at bootstrapping time findByFirstnameAndLastname(Float firstname, Double lastname).

In addition to that this check could also be added to the SD support in the STS IDE


No further details from DATACMNS-372

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions