How to add SqlContainer LIKE filter to Inet type column

Hi all, i faced a problem when i try to add a LIKE filter to my sqlContainer where the type is INET type in my database. And i’m using Postgresql 9.1. In my database, i need to use function host() to cast the INET type’s column to text before it can use the LIKE query method, like this : “select * from my_table where host(ip_addr) like ‘172%’;” . But now i dont know how can i do this with my SQLContainer LIKE filter. My code which trow exception is like this : sqlContainer.addContainerFilter(new Like("ip_addr", ip_addr.trim().replace('*', '%'))); .

I would also be very interested in the solution to this problem
as it is also representing a big problem to me.

Thank you!