Tam H. Doan
1 min readSep 8, 2019

--

Nice article!

I really like the point that we should create different models for each Datasource (ApiServices, Daos..). And these DTOs should be different with the Domain Object — which will be used throughout the logic of the app because it contains both behavior and data.

But what if my project does not use any ORM, but parse the data directly (from server JSON or DB table), then create a new Model object with these data. Then this object is Domain Model or DTO?

--

--

Tam H. Doan
Tam H. Doan

Written by Tam H. Doan

Software Engineer, also a Writer and Runner

Responses (1)