if (columnMetaData.getScale().intValue() != actualScale)
{
if( this.columnMetaData != null && this.columnMetaData.getParent() != null && (this.columnMetaData.getParent() instanceof AbstractMemberMetaData))
{
//includes the field name in error msg
throw new WrongScaleException(this.toString(), columnMetaData.getScale().intValue(), actualScale, ((AbstractMemberMetaData)this.columnMetaData.getParent()).getFullFieldName());
}
else
{
throw new WrongScaleException(this.toString(), columnMetaData.getScale().intValue(), actualScale);
}
}
}
}