Also override the equals and hashcode methods. Have a look at other providers to see how we implement the domain objects.