[ 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-09-28 09:56:19 +00:00
parent 03e2e67023
commit fdfa4a7b04
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class MCurrency extends X_C_Currency
// Try database
Query query = new Query(ctx, MCurrency.Table_Name, "iso_code=?", null);
query.setParameters(new Object[]{ISOcode});
retValue = (MCurrency)query.first();
retValue = (MCurrency)query.firstOnly();
// Save
if (retValue!=null)