spring-data-jpa icon indicating copy to clipboard operation
spring-data-jpa copied to clipboard

Fix typo in README.adoc

Open soominsohn opened this issue 1 year ago • 1 comments

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.

soominsohn avatar Jul 01 '24 12:07 soominsohn

good catch - thank you!

christophstrobl avatar Jul 02 '24 05:07 christophstrobl

Thanks. That's merged.

schauder avatar Jul 04 '24 07:07 schauder