I have some problems in my project, we use PostgreSQL and Hibernate as ORM. I want to search my table for any type of column (INTEGER, STRING, TEXT). Where are the problems with Hibernate, I know that I can execute, for example, a LIKE operator of type INTEGER, for example:
select * from Table1 where size::text like '%3';
But damn Hibernate takes :: TEXT as the self parameter and throws an exception. How can I avoid this error? Thanks.
source share