Results 1 to 4 of 4

Thread: Is spring batch meta data table's name configurable?

  1. #1

    Default Is spring batch meta data table's name configurable?

    Can i change the spring batch meta data table's name?

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    You can modify the prefix of the tables via a setter, which would allow you to replace the BATCH_ in front of the tables, but that's the most you can do.

  3. #3

    Default

    Thanks a lot.

    Quote Originally Posted by lucasward View Post
    You can modify the prefix of the tables via a setter, which would allow you to replace the BATCH_ in front of the tables, but that's the most you can do.

  4. #4

    Default Hashcode and equals

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •