Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch - Reference Documentation : Bugs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Batch - Reference Documentation : Bugs

    Since we're in 1.0 and the doc's are new, I thought I'd create a thread for
    listing those stupid but annoying bugs which inevitably creep into the documentation.

  • #2
    Automapping FieldSets to Domain Objects - p20 (PDF)

    In Spring Batch 1.0 Spring Batch - Reference Documentation
    p20 (PDF)

    [...]
    The FieldSetMapper configuration looks like the following

    <bean id="fieldSetMapper"
    class="org.springframework.batch.io.file.mapping.BeanWrapperFieldSetMapper">
    <property name="prototypeBeanName" value="player" />
    </bean>
    <bean id="person"
    class="org.springframework.batch.sample.domain.Pla yer"
    scope="prototype" />
    [...]

    Two problems found:

    1. There was probably some late refactoring of packages which didn't get reflected in the documentation.

    The class path for BeanWrapperFieldSetWrapper in the final jar is currently:
    org.springframework.batch.item.file.mapping.BeanWrapperFieldSetWrapper


    2. The prototypeBeanName property value doesn't match the provided
    bean ID.

    <property name="prototypeBeanName" value="player" />

    Probably ought to change the ID of bean to match

    <bean id="player" ...

    So far, the framework is working great.

    -Paul

    Comment


    • #3
      Would you mind posting these issues within Jira? That way I can make sure to address them when I'm working on cleaning up the documentation for the 1.1 release.

      Comment


      • #4
        Originally posted by lucasward View Post
        Would you mind posting these issues within Jira?
        Done.

        Sorry for bumbling around and not checking documentation.
        The bug is BATCH-678

        -P

        Comment

        Working...
        X