public void mapEntityToDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
{
this.skipDataSourceValidateField(fieldNum(InventInventoryMovementJournalEntryV4Entity,JournalNumber), true);
this.skipDataSourceValidateField(fieldNum(InventInventoryMovementJournalEntryV4Entity,LineNumber), true);
super(_entityCtx, _dataSourceCtx);
switch (_dataSourceCtx.name())
{
case dataEntityDataSourceStr(InventInventoryMovementJournalEntryV4Entity,InventJournalTable):
switch (_entityCtx.getDatabaseOperation())
{
case DataEntityDatabaseOperation::Insert:
InventJournalTable inventJournalTable = _dataSourceCtx.getBuffer();
inventJournalTable.initFromInventJournalName(InventJournalName::find(this.JournalNameId));
_dataSourceCtx.setBuffer(inventJournalTable);
break;
}
break;
}
}