bufferapp / clean-architecture-components-boilerplate

A fork of our clean architecture boilerplate, this time using the Android Architecture Components
MIT License
1.28k stars 178 forks source link

Why is BufferooEntity in the data layer? #22

Open mvescovo opened 5 years ago

mvescovo commented 5 years ago

I could be wrong here but I thought the domain layer should not be aware of anything in the data layer, and I that the "entities" are actually at the lowest layer inside the domain layer.

So from my understanding the domain layer can have access to the entities but it should not know anything about the data layer version of an entity. So I'm confused as to why the BufferooEntity is at the data layer instead of the domain layer. Is it a naming mistake or am I not understanding something? As far as I can tell the names are the wrong way around and it's the Bufferoo that should be at the data layer and the BufferooEntity should be at the domain layer. Aside from the name they are identical.