Originally posted by Amitabha Batranab:
Hi Valentin,
Thanks for your response, but Im afraid I must trouble you once again. Could you please explain me why we have the equals and hashcode method defined in the primary key class?. im sort of lost of the whole what the role of the primary key class is in the scheme of things.
No problem. If you read the sections I mentioned, you'll see that it is mandatory for the primary key class to override equals() and hashcode().