Assume we have separate models for Domain and Persistence, one domain model is stored as two persistence model, as given below.
class DomainEntity {
property1;
property2;
}
class PersistenceEntity1 {
domainProperty1;
appProperty1;
}
class PersistenceEntity2 {
domainPproperty2;
appProperty2;
}
If you see the models there are some extra application properties in the persistence model which doesn't belong in the domain model, e.g. modifiedOn, modifiedBy etc...
Now my question is how to pass these values to the infrastructure layer, since the Repository interface also belongs to the Domain layer, we can't add these properties to its signature.
Repository also belongs to the Domain layer- how so? The Repository Interface: yes but the Repository Implementation: no - Constantin Galbenusince the Repository interface also belongs to the Domain layer) - Constantin Galbenu