@NotNullintended for verification, for example @Size. It defines the rules for a validation mechanism to verify that user input is normally entered. Running a check around these annotations does not necessarily indicate that the object is also a JPA object, but the two are often used together.
javax.validation , ( ), , .