spring-projects / spring-data-jpa

Simplifies the development of creating a JPA-based data access layer.
https://spring.io/projects/spring-data-jpa/
Apache License 2.0
3.03k stars 1.42k forks source link

Fix typo in README.adoc #3530

Closed soominsohn closed 4 months ago

soominsohn commented 5 months ago

Hi team,

This PR addresses an issue in the README file related to the usage example of the findByFirstnameLike method in Spring Data JPA.

Before

List<Person> firstNameResults = repository.findByFirstnameLike("Oli*");

After

List<Person> firstNameResults = repository.findByFirstnameLike("Oli%");

Using an asterisk (*) in the LIKE clause does not work for pattern matching in SQL. The proper wildcard character for the LIKE clause in SQL is the percentage symbol (%).

Thank you.

christophstrobl commented 5 months ago

good catch - thank you!

schauder commented 4 months ago

Thanks. That's merged.