Does Spring Data JDBC validate entities while persisting - as Spring Data JPA does with the help of hibernate?
I have this scenario:
- Entity (more or less a copy of the actual database table)
- EntityDto (Data Transfer Object) with validation constraints such as
@NotEmpty
,@Min(5)
etc - Web Layer (Spring MVC) where the DTO things get validated by spring stuff.
Given this structure and assuming that Spring Data JDBC does no validation - I don´t need other annotations in the entities than @Id
do I?