Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
f1e5d14a
by Tony Chemit at 2022-10-11T17:25:06+02:00
1 changed file:
Changes:
| ... | ... | @@ -61,8 +61,10 @@ public class SampleSpi extends GeneratedSampleSpi { |
| 61 | 61 | dto.setId(entity.getTopiaId());
|
| 62 | 62 | Sample.fromDto(context, entity, dto);
|
| 63 | 63 | if (!entity.isPersisted()) {
|
| 64 | + Sample.SPI.getDao(context).initId(entity);
|
|
| 64 | 65 | parent.addSample(entity);
|
| 65 | 66 | }
|
| 67 | + SampleMeasure.SPI.initId(context,entity.getSampleMeasure());
|
|
| 66 | 68 | context.getTopiaPersistenceContext().flush();
|
| 67 | 69 | AddEntityToUpdateStep saveHelper = newSaveHelper(context)
|
| 68 | 70 | .update(this, entity);
|