Skip to content

Commit

Permalink
Fixed find by like. closes springframeworkguru#67
Browse files Browse the repository at this point in the history
  • Loading branch information
springframeworkguru committed Sep 22, 2018
1 parent 545a411 commit 078d586
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public String processFindForm(Owner owner, BindingResult result, Model model){
}

// find owners by last name
List<Owner> results = ownerService.findAllByLastNameLike(owner.getLastName());
List<Owner> results = ownerService.findAllByLastNameLike("%"+ owner.getLastName() + "%");

if (results.isEmpty()) {
// no owners found
Expand Down

0 comments on commit 078d586

Please sign in to comment.