do not is necessary the cast

This commit is contained in:
vpj-cd 2008-11-21 16:58:44 +00:00
parent 8c31a565fb
commit 6a88ee7a83
1 changed files with 3 additions and 2 deletions

View File

@ -73,9 +73,10 @@ public class MReplenish extends X_M_Replenish {
*/ */
public static List<MReplenish> getForProduct(Properties ctx, int M_ProductID, String trxName) { public static List<MReplenish> getForProduct(Properties ctx, int M_ProductID, String trxName) {
String whereClause= "M_Product_ID=? AND AD_Client_ID=? AND AD_Org_ID IN (0, ?) "; String whereClause= "M_Product_ID=? AND AD_Client_ID=? AND AD_Org_ID IN (0, ?) ";
return (List<MReplenish>) new Query(ctx, Table_Name, whereClause, trxName) return new Query(ctx, Table_Name, whereClause, trxName)
.setParameters(new Object[]{M_ProductID, Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx)}) .setParameters(new Object[]{M_ProductID, Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx)})
.setOrderBy("AD_Org_ID") .setOrderBy("AD_Org_ID")
.setOnlyActiveRecords(true); .setOnlyActiveRecords(true)
.list();
} }
} }