You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Wang Yan <wy...@gmail.com> on 2018/09/26 15:09:35 UTC
How to BindyFixedLengthDataFormat for complex pojos ?
if my Pojo is complex, consisting of other Pojos
How should i create BindyFixedLengthDataFormat instance?
It seems i need create for 3 pojos but i could only create one like below
BindyFixedLengthDataFormat bindy = new
BindyFixedLengthDataFormat(com.mypackage.Order.class);
public class Order {
@Link Header header;
@Link Trailer trailer;
......
}
Any hints are more than welcome!
Re: How to BindyFixedLengthDataFormat for complex pojos ?
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
You should point it to the main POJO class in that data format, eg the
class that has the @CsvRecord class annotation
On Wed, Sep 26, 2018 at 5:09 PM Wang Yan <wy...@gmail.com> wrote:
>
> if my Pojo is complex, consisting of other Pojos
>
> How should i create BindyFixedLengthDataFormat instance?
>
> It seems i need create for 3 pojos but i could only create one like below
>
> BindyFixedLengthDataFormat bindy = new
> BindyFixedLengthDataFormat(com.mypackage.Order.class);
>
>
>
>
> public class Order {
>
> @Link Header header;
>
> @Link Trailer trailer;
>
> ......
>
> }
>
>
> Any hints are more than welcome!
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2