Objectdb ignores not null annotations


I'd like to mark field of an entity not nullable so that when developer tries to persist such entity exception gets thrown...

I've tried @Column(nullable = false) (i even tried @NotNull which is not JPA, anyway I've tried :)

Please specify valid way to mark a field (might be of another Entity type or primitive) not nullable...



Please see the answer in this forum thread.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login