It would be great if Kundera could support the model constraints validation like @NotNull, @Size, ...
Example on an Entity:
@Size(min = 1, max = 256)
private String email;
@Size(min = 3, max = 50)
private String pseudo;
This simplify drastically the code. This must be called before an Entity is created (persist or merge) or updated. If validation failed, a ConstraintViolationException must be send. It contains detailled informations of the constraint and the field in error.
This would be really great!
Moving it to 2.10 release for assessment. Though @Notnull constraints doesn't make much sense in most of NoSQL databases.
Support for bean validation has been added in this 2.10