Skip to content

Instantly share code, notes, and snippets.

@sohangp
Created October 7, 2019 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sohangp/57726f8b5204de8d4049aa8406ff6d9f to your computer and use it in GitHub Desktop.
Save sohangp/57726f8b5204de8d4049aa8406ff6d9f to your computer and use it in GitHub Desktop.
Named Parameter for FirstName
/**
* This will list all customers based on first name.
*
* @return List<CustomerDetailsDTO>
*/
@Query(name = "customerEntity.searchCustomerByFirstName", nativeQuery = true)
List<CustomerDetailsDTO> searchCustomerByFirstName(@Param("firstName") String firstName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment