Adding properties to domain classes