Android-CleanArchitecture
Android-CleanArchitecture copied to clipboard
If only the data layer has entities,so domain need depends on data. This breaks the dependency rules right?
If only the data layer has entities,so domain need depends on data. This breaks the dependency rules right?
No, You have to use the mapper classes to convert the model classes to Entity and Entity to model class.
Please look at the UserEntityDataMapper.java
No, You have to use the mapper classes to convert the model classes to Entity and Entity to model class. Please look at the
UserEntityDataMapper.java
thanks so much