correct cascade delete options
This commit is contained in:
parent
e33dfdb845
commit
b1b714f44e
19 changed files with 207 additions and 52 deletions
|
|
@ -29,4 +29,17 @@ export class RecipeIngredientDtoEntityMapper extends AbstractDtoEntityMapper<Rec
|
|||
|
||||
return entity;
|
||||
}
|
||||
|
||||
createNewEntity(): RecipeIngredientEntity {
|
||||
return new RecipeIngredientEntity();
|
||||
}
|
||||
|
||||
mergeDtoIntoEntity(dto: RecipeIngredientDto, entity: RecipeIngredientEntity): RecipeIngredientEntity {
|
||||
entity.name = dto.name;
|
||||
entity.amount = dto.amount;
|
||||
entity.unit = dto.unit;
|
||||
entity.subtext = dto.subtext;
|
||||
entity.sortOrder = dto.sortOrder;
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue