Missing @NotNull annotation on new mandatory field

Using platform-6.7.2

When creating a new attribute, setting it to “Mandatory” make it “not null” in the DDL, but no @NotNull annotation is inserted in the source. This is in contrast with setting as “Mandatory” an already existing attribute: this causes both “not null” in DDL and @NotNull annotation in the source.

It happens to me the same, what I don’t understand is that if I unmark the mandatory box and then the frame, then if the annotation @NotNull is created.

Same problem here :sweat_smile:

Hi, Paolo!

I’ve reproduced the issue and created a ticket for this problem: YouTrack.

Thank you.