Usage of Hibernate Validator
This model has 10 fields of different types. We have to use hibernate validator annotations to check the validity of those fields.
Created objects were converted to JSON format to provide a better understanding of model: