I've have a little issue to expose:
I want to extract from an entity, suppose its name "CustomerDetail" all rows where a specific field (code) has only numeric characters.
In HQL doesn't exist ISNUMERIC() function like Sql Server, and the possibility to apply regex function.
A possible solution is the following:
SELECT C
FROM CustomerDetail C
WHERE C.code NOT LIKE '%A%'
AND C.code NOT LIKE '%B%'
and so on repeating this condition overall alfabetical letter and special characters.
I think this is a poor solution, with a low level of performance (enormous number of LIKE)
Please, can you advice me a more smart solution?
Thank you in advance
P.S. My application is multi DBMS so I can't use SQL query