In our project we are using Spring with Hibernate and we are using other team jars as dependent jars to fetch data from oracle data base.
We are getting duplicate records even though we implemented equals() and hashCode() methods in model classes and we are storing these object in HashSet. I am strange why set is allowing duplicate objects here. Even though hashCode() and equals() method is overridden ?.
If you observe the screen shot modcount size is different and table size is different

equalsandhashCodedoes not mean you can't have duplicates.