Try this:
List productIds = UtilMisc.toList("product1", "product2", etc);
List productsList = delegator.findByCondition("Product", new
EntityExpr("productId", EntityOperator.IN, productIds), null, null);
You can also use findByAnd
Skip
-Original Message-
Fro
prohibited. Thank you for your compliance.
-Original Message-
From: Skip
Sent: Tuesday, May 01, 2012 9:59 PM
To: user@ofbiz.apache.org
Subject: RE: Need to fetch records using multiple ids in where clause
Try this:
List productIds = UtilMisc.toList("product1", "
used later by all developers.
Dev
From:
"Skip"
To:
Date:
05/01/2012 10:04 PM
Subject:
RE: Need to fetch records using multiple ids in where clause
Try this:
List productIds =
UtilMisc.toList("product1", "product2", etc);
prohibited. Thank you for your compliance.
-Original Message-
From: deb.pa...@tcs.com
Sent: Wednesday, May 02, 2012 12:05 PM
To: user@ofbiz.apache.org
Cc: user@ofbiz.apache.org
Subject: RE: Need to fetch records using multiple ids in where clause
Sharing an experience
findByCondition - is