Login  Register

Re: Dev - findByLike

Posted by Hans Bakker on Apr 29, 2006; 8:27am
URL: http://ofbiz.116.s1.nabble.com/Dev-findByLike-tp167804p167811.html

forgot to tell that 'prefix' is a String variable...

On Saturday 29 April 2006 14:19, Hans Bakker wrote:

> 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
--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

attachment0 (196 bytes) Download Attachment