[ 2214883 ] Remove SQL code and Replace for Query

slight re-adjust to match original return stmt
This commit is contained in:
Redhuan D. Oon 2008-11-02 10:31:02 +00:00
parent 826f3d86df
commit 4469abf330
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ public class MAchievement extends X_PA_Achievement
List <MAchievement> list = new Query(ctx,MAchievement.Table_Name, whereClause, null) List <MAchievement> list = new Query(ctx,MAchievement.Table_Name, whereClause, null)
.setParameters(new Object[]{PA_Measure_ID}).setOrderBy("SeqNo, DateDoc").list(); .setParameters(new Object[]{PA_Measure_ID}).setOrderBy("SeqNo, DateDoc").list();
return list.toArray(new MAchievement[list.size()]); MAchievement[] retValue = new MAchievement[list.size ()];
list.toArray (retValue);
return retValue;
} // getOfMeasure } // getOfMeasure