add a "non null" field to the "field defaults" annotation

26 views
Skip to first unread message

Pierre Mazieres

unread,
Dec 14, 2022, 1:06:16 AM12/14/22
to Project Lombok
Hello,

I think it should be usefull to add a "non null" field to the "field defaults" annotation.

Regarging existing @FieldDefaults annotation,
I propose to add the 'nonNull' property has following :
 - type : boolean
 - default value : false
If this property is set to true, every record will not be nullable.
So it will be similar than adding @NonNull to every record.

Admitting you validate this idea, I do not know if I will be able to implement it (time & skill constraints).

Regards,
Pierre
Reply all
Reply to author
Forward
0 new messages