there are basically two reasons you need to override equals and hashcode method in the POJO class
1 if you tend to put the instances of the persistenct classes into the Java collecti .like Set
2 if you tend to use the reattechmen and detatched classes