Questions tagged [spring-boot]
84 questions
13
votes
2 answers
Should I validate dtos or entities?
I want to place validation in one layer for the reason of simple code maintenance. I was thinking of entity validation, cause this protects directly database. Am I right, or should I add validation also on dto level? I would be happy, if someoneā¦

Bartek
- 241