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?
@NotNullis located withinjavax.validation.constraints. In thejavax.validation.constraints.NotNulljavadoc 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=falseto the column?