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
d3aca98c26
commit
387a56bab4
|
@ -144,7 +144,8 @@ public class MBPartner extends X_C_BPartner
|
||||||
return null;
|
return null;
|
||||||
String whereClause = "Value=? AND AD_Client_ID=?";
|
String whereClause = "Value=? AND AD_Client_ID=?";
|
||||||
MBPartner retValue = new Query(ctx,MBPartner.Table_Name,whereClause.toString(),null)
|
MBPartner retValue = new Query(ctx,MBPartner.Table_Name,whereClause.toString(),null)
|
||||||
.setParameters(new Object[]{Value,Env.getAD_Client_ID(ctx)}).first();
|
.setParameters(new Object[]{Value,Env.getAD_Client_ID(ctx)})
|
||||||
|
.firstOnly();
|
||||||
return retValue;
|
return retValue;
|
||||||
} // get
|
} // get
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue