By using the following API, you can skip validation for a particular field, regardless of the consumer.
public void persistEntity(DataEntityRuntimeContext _entityCtx)
{
this.skipDataSourceValidateField(fieldNum(_dataEntityName, _ dataEntityfield), true);
super(_entityCtx);
}
_dataEntityfield - field ID of the data-entity mapped field, not the back-end table field.
_dataEntityName – name of data entity.