Equals and hashcode methods were overrided in class Realm