validateTrDto method
Implementation
@override
TrDto validateTrDto(TrDto trDto, OperationType operationType) {
ConfigurationTrDto configurationTrDto =
super.validateTrDto(trDto, operationType) as ConfigurationTrDto;
if (operationType == OperationType.INSERT) {
if (configurationTrDto.configuration_name == null)
throw SqlException(SqlExceptionEnum.FAILED_UPDATE,
cause: "ConfigurationDao: ConfigurationName must be passed.");
if (configurationTrDto.id != null) throw ArgumentError("id must be null");
}
return configurationTrDto;
}