Skip to content

Commit

Permalink
fix: request find by name
Browse files Browse the repository at this point in the history
  • Loading branch information
BettyB979 committed Aug 5, 2024
1 parent af0d63e commit 1f9fcc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ OR UPPER(c.email) LIKE CONCAT(:param, '%')

Page<SearchContactDto> findByIdentifierIgnoreCaseStartingWithOrFirstNameIgnoreCaseStartingWithOrLastNameIgnoreCaseStartingWithOrEmailIgnoreCaseStartingWith(String identifier, String firstName, String lastName, String email, Pageable pageable);

@Query(nativeQuery = true, value = "SELECT * FROM contact WHERE UPPER(CONCAT(c.first_name, ' ', c.last_name)) LIKE CONCAT(:param, '%')")
@Query(nativeQuery = true, value = "SELECT * FROM contact c WHERE UPPER(CONCAT(c.first_name, ' ', c.last_name)) LIKE CONCAT(:param, '%')")
Page<SearchContactDto> findByFirstNameLastName( String param, Pageable pageable);

@Query(nativeQuery = true, value = "SELECT * FROM contact")
Expand Down

0 comments on commit 1f9fcc9

Please sign in to comment.