Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Database schema and custom Micronaut validators
We have dedicated migrations for defining the database schema.
...
This ensures the validation routines are called on the model.
You should also get a validation exception should it fail.
Validating that a property is not null
@NonNull
is a compiler and tooling suggestion whereas @NotNull
is a validation directive for validated classes.
...