Hi,
I'm using Hibernate 2.1.7 and have a question about the Example class for constructing Criteria queries.
Normally Example excludes properties that are null. I would like to also exclude properties that are empty strings, since empty strings may be coerced to NULL in Oracle. This is fairly easy to do with my own Example.PropertySelector, but I was wondering if there is a more succinct way to do it. Or would it be reasonable to submit a patch to Example so you can just call example.excludeBlanks() similarly to excludeZeroes?
Thanks,
Bill
|