Added appropriate constraints to domain classes