I am trying to implement a repository query method to search an address by its house name. I want this search query to be case-insensitive.
I have the following search method defined in the Address repository. But this search is case sensitive.
@Query(value = "select ad from #{#entityName} ad where ad.houseName LIKE :houseName%")
public Page<LocalAddress> findByHouseName(@Param("houseName") String houseName, Pageable page);
How do I make this query case insensitive?