B
B
Biaci_Anj2022-02-18 15:47:49
Java
Biaci_Anj, 2022-02-18 15:47:49

Servlets, where should the conversion to DTO be?

I need sometimes to have regular Entities, sometimes DTOs, how to do it right?
In DAO to return at once DTO?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2022-02-18
@Biaci_Anj

Good afternoon.
The conversion can be at different levels. Usually, this is at the service or controller level.
https://www.baeldung.com/entity-to-and-from-dto-fo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question