[ 2694043 ] Query. first/firstOnly usage best practice

https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2694043&group_id=176962
This commit is contained in:
teo_sarca 2009-07-29 09:22:59 +00:00
parent 208a3b427a
commit c69672f3c6
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ public class MAcctSchemaDefault extends X_C_AcctSchema_Default
{
String whereClause = "C_AcctSchema_ID=?";
return new Query(ctx,MAcctSchemaDefault.Table_Name,whereClause,null)
.setParameters(new Object[]{C_AcctSchema_ID}).first();
.setParameters(new Object[]{C_AcctSchema_ID})
.firstOnly();
} // get
/** Logger */