I keep on getting this error: 
org.springframework.batch.retry.RetryException: Inconsistent state for failed item key: hashCode has changed. Consider whether equals() or hashCode() for the item might be inconsistent, or if you need to supply a better ItemKeyGenerator
I have a wrapper class like:
Code:
Class Wrapper {
Object1 obj1;
List<Object2> obj2;
List<Object3> obj3;
}
Class Object1 {
Parent parent;
List<Child> children;
}
I have hashcode and equals for each objects. Both hashcode and equals contain the unique id of the object.
I would like to know how/where spring batch is so much coupled with hashcode and equals? I mean where all places i should take care of these things?
Could you please tell me how to use ItemKeyGenerator for the above mentioned scenario? or what needs to be taken care while i am generating hashcode and equals?