'Configure Hibernate to set NOT NULL to all columns by default

Hibernate's columns are nullable by default. I want the default for all my entities to be NOT NULL. How can I do this, either using JPA or Hibernate's BeanValidation? thx



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source