IDEMPIERE-5237 : Add tablename on log when a column is missing (#1258)
This commit is contained in:
parent
4f5c3360fc
commit
98f31bc3eb
|
@ -543,7 +543,7 @@ public abstract class PO
|
||||||
int index = get_ColumnIndex(columnName);
|
int index = get_ColumnIndex(columnName);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
log.log(Level.WARNING, "Column not found - " + columnName);
|
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
|
||||||
Trace.printStack();
|
Trace.printStack();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -614,7 +614,7 @@ public abstract class PO
|
||||||
int index = get_ColumnIndex(columnName);
|
int index = get_ColumnIndex(columnName);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
log.log(Level.WARNING, "Column not found - " + columnName);
|
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return get_ValueOld (index);
|
return get_ValueOld (index);
|
||||||
|
@ -672,7 +672,7 @@ public abstract class PO
|
||||||
int index = get_ColumnIndex(columnName);
|
int index = get_ColumnIndex(columnName);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
log.log(Level.WARNING, "Column not found - " + columnName);
|
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return is_ValueChanged (index);
|
return is_ValueChanged (index);
|
||||||
|
@ -730,7 +730,7 @@ public abstract class PO
|
||||||
int index = get_ColumnIndex(columnName);
|
int index = get_ColumnIndex(columnName);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
log.log(Level.WARNING, "Column not found - " + columnName);
|
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return get_ValueDifference (index);
|
return get_ValueDifference (index);
|
||||||
|
@ -766,8 +766,8 @@ public abstract class PO
|
||||||
int index = get_ColumnIndex(ColumnName);
|
int index = get_ColumnIndex(ColumnName);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "Column not found - " + ColumnName);
|
log.log(Level.SEVERE, "Column not found - " + get_TableName() + "." + ColumnName);
|
||||||
log.saveError("ColumnNotFound", "Column not found - " + ColumnName);
|
log.saveError("ColumnNotFound", get_TableName() + "." + ColumnName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (ColumnName.endsWith("_ID") && value instanceof String )
|
if (ColumnName.endsWith("_ID") && value instanceof String )
|
||||||
|
|
Loading…
Reference in New Issue