Closed alessandriniluca closed 3 years ago
yes, it is good to have the "nullable=false" and reflect it in the DB, putting the fields as NOT NULL then, it is good to have a more check in the EJB.
Perfect. Just need to put checks in the db and also in the other places where entity is needed
Reopened in order to remember to update the fields in the DB Model!
Should I put for example all the fields of the entity "User", like "username", "passwords" as "nullable = false" or we give them for granted while we are requesting them (for example checking them before creating the object)?