[ 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:
parent
208a3b427a
commit
c69672f3c6
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue