android10 / Android-CleanArchitecture

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Apache License 2.0
15.52k stars 3.32k forks source link

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

Open annybudong opened 4 years ago

annybudong commented 4 years ago

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

drayan85 commented 4 years ago

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

annybudong commented 4 years ago

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