Skip to content
Advertisement

Case insesitive query with Springboot CRUD Repository

Values in Room_Entity table is hardcoded and Room_Status values are in uppercase . I want my search to be case insensitive. Here is my query. I am using upper but getting error

JavaScript

Advertisement

Answer

Simply:

JavaScript

But I’d consider using a case insensitive collation for the ROOM_TYPE column.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement