FR: [ 2214883 ] Remove SQL code and Replace for Query

Please keep transaction.
Old code used transaction, so new should also use transaction.
http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
trifonnt 2010-02-25 19:30:58 +00:00
parent fea9618e40
commit 025e667dd2
1 changed files with 5 additions and 4 deletions

View File

@ -85,10 +85,11 @@ public class MPaySelection extends X_C_PaySelection
}
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "C_PaySelection_ID=?";
List <MPaySelectionLine> list = new Query(getCtx(), MPaySelectionLine.Table_Name, whereClause, null)
.setParameters(new Object[]{getC_PaySelection_ID()})
.setOrderBy("Line")
.list();
List <MPaySelectionLine> list = new Query(getCtx(), MPaySelectionLine.Table_Name, whereClause, get_TrxName())
.setParameters(new Object[]{getC_PaySelection_ID()})
.setOrderBy("Line")
.list()
;
//
m_lines = new MPaySelectionLine[list.size ()];
list.toArray (m_lines);