-
When they appear on a field/getter of an
@Entity
, what is the difference between them? (I persist the Entity through Hibernate). -
What framework and/or specification each one of them belongs to?
-
@NotNull
is located withinjavax.validation.constraints
. In thejavax.validation.constraints.NotNull
javadoc it saysThe annotated element must not be null
but it does not speak of the element’s representation in the database, so why would I add the constraint
nullable=false
to the column?