Android-CleanArchitecture icon indicating copy to clipboard operation
Android-CleanArchitecture copied to clipboard

If only the data layer has entities,so domain need depends on data. This breaks the dependency rules right?

Open annybudong opened this issue 5 years ago • 2 comments

If only the data layer has entities,so domain need depends on data. This breaks the dependency rules right?

annybudong avatar Apr 08 '20 03:04 annybudong

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

drayan85 avatar Apr 08 '20 04:04 drayan85

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

annybudong avatar Apr 08 '20 05:04 annybudong