[hibernate-dev] @NotNull on @Embeddable's property doesn't affect DDL

Emmanuel Bernard emmanuel at hibernate.org
Mon Dec 5 08:05:08 EST 2011


On 3 déc. 2011, at 16:45, Christian Bauer wrote:

> See Button.java in the tests. The @NotNull on the embeddables property is checked at runtime but doesn't affect DDL, there's no NOT NULL constraint generated. Is that by design - component nullability etc. - or missing?

Yep that's to support nullable components as the sum of properties set to null.



More information about the hibernate-dev mailing list