sam98uele / DB2Project_EJB

3 stars 0 forks source link

Nullable fields #1

Closed alessandriniluca closed 3 years ago

alessandriniluca commented 3 years ago

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)?

sam98uele commented 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.

alessandriniluca commented 3 years ago

Perfect. Just need to put checks in the db and also in the other places where entity is needed

sam98uele commented 3 years ago

Reopened in order to remember to update the fields in the DB Model!