Peer review 11500, minor - drop useless comment, organize imports

Remove SQL code and Replace for Query
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Carlos Ruiz 2010-02-27 21:06:50 +00:00
parent cc7809b482
commit 03153697fe
1 changed files with 1 additions and 4 deletions

View File

@ -16,12 +16,9 @@
*****************************************************************************/
package org.compiere.model;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@ -50,7 +47,7 @@ public class MBOMProduct extends X_M_BOMProduct
{
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "M_BOM_ID=?";
List <MBOMProduct> list = new Query(bom.getCtx(), I_M_BOMProduct.Table_Name, whereClause, bom.get_TrxName()) // @TODO: Review implications of using transaction
List <MBOMProduct> list = new Query(bom.getCtx(), I_M_BOMProduct.Table_Name, whereClause, bom.get_TrxName())
.setParameters(bom.getM_BOM_ID())
.setOrderBy("SeqNo")
.list();