I want to perform search by keyword on all fields of a table. Say I have a customer table with following fields:
FieldName Data Type
CustomerID Integer
CustomerName String
City String
I cannot use LIKE operator as follows:
"SELECT OBJECT(c) FROM Customer AS c WHERE c.CustomerName LIKE ?1"
This throws error as LIKE operator expects String fields only. Is there any way I can use LIKE operator or any other way to search by keywords on all field of any data type using EJB QL.