Announcement Announcement Module
Collapse
No announcement yet.
Is spring batch meta data table's name configurable? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

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

  • #2
    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.

    Comment


    • #3
      Thanks a lot.

      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.

      Comment


      • #4
        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?

        Comment

        Working...
        X