[OFBiz] Dev - deprecated EntityExpr constructor

Si Chen schen at graciousstyle.com
Mon Sep 27 16:14:55 EDT 2004


I'm using this syntax:
EntityCondition cond = new EntityExpr("productCategoryId", true, 
EntityOperator.LIKE, "something%", true);
to do a case-insensitive search for an product category which starts 
with "something", but I just saw in the javadocs that this constructor 
is deprecated.  Which one replaces it for doing case-insensitive 
searches?  I've found that
EntityCondition cond = new EntityExpr("productCategoryId", 
EntityOperator.LIKE, "something%")
is case sensitive.

Thanks,

Si


More information about the Dev mailing list