I use the Hibernate validator to authenticate an object in my web application. Hibernate tools generate entity objects from a database schema with @Column annotation containing "nullable = false".
... @Column(name = "LANG_IDENTIFIER", nullable = false, length = 2) public String getIdentifier() { return this.identifier; } ...
Is it possible to use validate @Column as a null value? Adding "@NotNull" does the job, but thatβs not what I want, because then I need to change all my generated classes.
Any entry is welcome!
source share