Enums
To search for a specific enum type, cast the value with the enum class name. The class name must be fully qualified and must be in the same format as the return value of String.class.getName().
select * from Person where age = (enum some.company.package.Foo)'Bar'