webapp icon indicating copy to clipboard operation
webapp copied to clipboard

@NotNull should also apply to DDL

Open jo-elimu opened this issue 7 months ago • 3 comments

The JPA schema export at https://github.com/elimu-ai/webapp/blob/main/src/main/resources/META-INF/jpa-schema-export.sql should apply not null when an entity's property is annotated with @NotNull.

https://stackoverflow.com/questions/51258073/notnull-annotation-does-not-translate-to-not-null-constraint-in-schema-generati

Make changes so that @NotNull automatically adds not null to the database layer (DDL + production database).


Relates to #1286, #1607

jo-elimu avatar Jul 11 '24 08:07 jo-elimu