I'm trying to model a COBOL copybook message using Bindy. The basic
structure is a fixed length header followed by multiple fixed length bodies
- all with no separators.
Can this be modeled for marshaling purposes using the following annotations:
@FixedLengthRecord(length=60, paddingChar=' ')
public class TestHeader {
@DataField(pos = 1, length = 4)
private String RECORD_ID;
etc....
@OneToMany
private List<TestBody> body;
}
@FixedLengthRecord(length=40, paddingChar=' ')
public class TestBody {
@DataField(pos = 1, length = 16)
private String TYPE;
etc
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Bindy-and-FixedLength-tp5118749p5118749.html
Sent from the Camel - Users mailing list archive at Nabble.com.