One way to specifying validation requirements is to apply attributes to
the data model class.