-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhanced owner search functionality #1777
base: main
Are you sure you want to change the base?
Conversation
@APerumalRaj Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
Signed-off-by: Perumal Raj A <[email protected]>
@APerumalRaj Thank you for signing the Contributor License Agreement! |
@@ -53,7 +54,10 @@ public interface OwnerRepository extends JpaRepository<Owner, Integer> { | |||
* @return a Collection of matching {@link Owner}s (or an empty Collection if none | |||
* found) | |||
*/ | |||
Page<Owner> findByLastNameStartingWith(String lastName, Pageable pageable); | |||
// Page<Owner> findByLastNameStartingWith(String lastName, Pageable pageable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why commented?
@@ -124,10 +124,15 @@ private String addPaginationModel(int page, Model model, Page<Owner> paginated) | |||
return "owners/ownersList"; | |||
} | |||
|
|||
private Page<Owner> findPaginatedForOwnersLastName(int page, String lastname) { | |||
// private Page<Owner> findPaginatedForOwnersLastName(int page, String lastname) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to have commented dead code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to be updated
Signed-off-by: Perumal Raj A <[email protected]>
@andrzejsydor I have made the requested changes. Please review and let me know if any further modifications are needed. Thanks! |
Signed-off-by: Perumal Raj A <[email protected]>
This pull request updates the owner search functionality to allow users to search by any part of the owner's name.
Previously, the search was restricted to matching the last name only.
LIKE
.