Fork me on GitHub

How to make a property optional (when saving an object)

By default, when a new transient (unsaved) object is presented to the user, values must be specified for all properties before the object may be saved.

To specify that a particular property is optional, use the @Optional annotation.