jbarberan / beanio

Automatically exported from code.google.com/p/beanio
0 stars 0 forks source link

@Group does not work #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.
1. I have created group using the example in the test class : AnnotatedGroupTest
2. Tryin to create a file using : 

        streamFactory = StreamFactory.newInstance();
        StreamBuilder builder = new StreamBuilder("batchFile")
                                        .format("fixedlength")
                                        .addGroup(GroupRequest.class)

        streamFactory.define(builder);

   final BeanWriter out = streamFactory.createWriter("batchFile", writer);
        try
        {
            out.write(transferFile.getHeaderRecord());

            for (SummaryRecordRequest record : transferFile.getSummaryRecords())
            {
                out.write(record);

                for (detailsRecordRequest detailsRecord : record.getDetailsRecordRequests())
                {
                    out.write(detailsRecord);
                }
            }
            out.write(transferFile.getFooterRecord());
        }
        finally
        {
            out.close();
        }

3. the problem is that none of the record types are identified. I get the 
error:Bean identification failed: no record or group mapping for bean class 
'HeaderRecord' at the current position"

What is the expected output? What do you see instead?
Should identify all the record types. It does not identify any of the records.

What version of BeanIO are you using? What JDK version?
<dependency>
            <groupId>org.beanio</groupId>
            <artifactId>beanio</artifactId>
            <version>2.1.0.M2</version>
        </dependency>

Please provide any additional information below.

Original issue reported on code.google.com by joeysmit...@gmail.com on 23 Jul 2014 at 9:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
How are all of your bean objects defined/annotated?

Original comment by kevin.s...@gmail.com on 27 Jul 2014 at 7:37

GoogleCodeExporter commented 8 years ago
This issue will be closed if no further information is provided.

Original comment by kevin.s...@gmail.com on 28 Aug 2014 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by kevin.s...@gmail.com on 7 Sep 2014 at 1:21