Closed soominsohn closed 4 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.
findByFirstnameLike
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.
good catch - thank you!
Thanks. That's merged.
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
After
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.