java - How large should be Data Transfer Objects? -


As I have understood, the data transfer object is used for various purposes, so the boundaries with the view layer in Java (JSF);

) -Web-applications (i.e. usually some unit-objects are mapped to db, which is a business logic Can also be used in the layer, and some transfer objects used in the presentation level).

So, I have some misgivings about how DTO should be designed properly, should I keep them as short as possible? Or should I try to design as much of the information as I possibly can to get started in a few parts of the DTO areas (in some different usage cases) at one time?

Would I consider using some oo principles (at least heritage and structure) while designing DOTO or should they be as simple as just some primitive-type fields with their accessories?

DTO, if domain is different from objects / entities, then the larger you should be as large - you All data must be transferred exactly.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -