We should be able to use nullability annotations in our generated model classes. But we need to make sure that validation still works... so if a client or server omitted something, we can still validate what they sent to check it.
So we move our bean validation annotations to the fields and then we can put non-null annotations on our getters and setters... in our getters we'll need to always create and set the value... like we do with the chained getter.
We should be able to use nullability annotations in our generated model classes. But we need to make sure that validation still works... so if a client or server omitted something, we can still validate what they sent to check it.
So we move our bean validation annotations to the fields and then we can put non-null annotations on our getters and setters... in our getters we'll need to always create and set the value... like we do with the chained getter.