I don't get what you are asking for - this is a general rule though if you override equals you have to override hashCode() as well. I can give you more advice if you need though?