Top "Dto" questions

DTO is an acronym for Data Transfer Object, a design pattern used in data transfer.

DTO or Domain Model Object in the View Layer?

I know this is probably an age-old question, but what is the better practice? Using a domain model object throughout …

model dto data-transfer-objects
DTOs: best practices

I am considering to use DTOs instead of passing around my domain objects. I have read several posts here as …

dto
How to use Dozer with Spring Boot?

I am working on a Spring Boot project. I just have annotation configuration. I want to include dozer to transform …

java spring annotations dto dozer
DDD - which layer DTO should be implemented

I am learning about DDD so apologies if my question is naive. I think I need to use Local Data …

domain-driven-design implementation layer dto
C# MongoDB: How to correctly map a domain object?

I recently started reading Evans' Domain-Driven design book and started a small sample project to get some experience in DDD. …

c# mongodb domain-driven-design dto
Pattern for JPA: Generating Data Transfer Object DTO from Entity and merging DTO to database

I am looking for a good way to create Data Transfer Objects (DTO) from a JPA Entity and vice versa. …

java jakarta-ee jpa entitymanager dto
Unit testing of DTOs

Is it appropriate and necessary to test getters and setters? I think they haven't any logic and they can't crash …

java unit-testing dto
Dozer mapping for Hibernate object to DTO

I try to use Dozer to convert my domain entity to DTO objects. So, I want to convert PersistentList, PersistentBag, ... …

java hibernate mapping dto dozer
Using DTO to transfer data between service layer and UI layer

I've been trying to figure this out for days but there seems to be very little info on this particular …

asp.net-mvc repository dto unit-of-work n-tier-architecture
Should the repository layer return data-transfer-objects (DTO)?

I have a repository layer that is responsible for my data-access, which is called by a service layer. The service …

c# data-access-layer n-tier-architecture dto service-layer