Given I have entity Car
with column model
which doesn't accept NULL
s
@Table(name = "CAR")
@Entity
public class Car extends AbstractEntity<Long> {
@Column(name = "MODEL", nullable = false)
private final String model;
}
When I prepare database schema, insert data (including NULL
s in MODEL
column) manually and start up application, it doesn't fail to start.
Why is that?
Do conditions specified in @Column
annotation only apply for insert/update operations, not for read operations?