Hi

Why dont you try it for yourself? I would assume it would be doable
with the outline you sketched.


On Wed, Jan 4, 2012 at 6:15 AM, Fitzcaraldo
<brian.fitzger...@marlo.com.au> wrote:
> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to