The cname property however may be null. Sometimes we
want to ensure the corresponding database attributes to be set, at least
carrying an empty string value. This can be achieved by adding a
javax.persistence.Column(nullable
= false) annotation: