[ 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
03e2e67023
commit
fdfa4a7b04
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue