Dev - findByLike
Posted by
Hans Bakker on
Apr 29, 2006; 8:19am
URL: http://ofbiz.116.s1.nabble.com/Dev-findByLike-tp167804.html
Anybody has a solution for this?
My code:
-------------
List topEntityList = delegator.findByLike("ProductStore",
UtilMisc.toMap("productStoreId",prefix.concat("%")));
and I get i the log:
--------------
EntityExpr called with lhs as a String; consider recompiling
Exception: java.lang.Exception
Message: null
This is happening in the following code in EntityExpr.java around line 60:
-----------------------------------------------------------
public EntityExpr(Object lhs, EntityComparisonOperator operator, Object rhs) {
if (lhs == null) {
throw new IllegalArgumentException("The field value cannot be null");
}
I am a bit surprised because findbylike requires the field and values to be in
a map with a fieldname(string) and value(string)
so why it is complaining about the string?
met vriendelijke groet,
Hans Bakker
A-NeT Internet Services (www.a-net.nl)
E-Mail public key can be downloaded from:
www.a-net.nl/hbakkerA-net.asc
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev