architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

Overload with annotation

Open prabinshrestha opened this issue 7 years ago • 1 comments

  • when we define our pojo we convert it into dto by @AutoValue, also we implements gson, now we have to annoted with room,don't you guys think the simple class look messy when these things come around, do we have a best solution for it?

Please provide me best example if possible?

prabinshrestha avatar Sep 25 '17 12:09 prabinshrestha

@prabinshrestha,

You can extract a common interface and keep it at the domain level. The various specific implementations can then be isolated (and more easily mocked).

andre-artus avatar Oct 02 '17 14:10 andre-artus