Hi Folks,
I proven that enableLike works with values of component objects:
Code:
Criteria critera = createCriteria();
critera.add(Example.create(contactCriteria)
.excludeNone()
.excludeProperty("online")
.excludeProperty("readingEmail")
.excludeProperty("readingTechnicalLiterature")
.excludeZeroes() // exclude zero valued properties
.enableLike() // use like for string comparisons
);
Unfortunaly I have to drop all boolean values as neither
excludeNone nor
excludeZeroes drop them automatically. Do I am something wrong or this is a bug?
Thx
Toby