AFAIR bindy requires you use different package names for different classes.

On Thu, Jun 19, 2014 at 7:21 PM, sprasan <sarada.beh...@jda.com> wrote:
> Hi,
>  I'm trying to unmarshal from CSV file to POJO using Bindy on Camel. As I
> need to unmarshal multiple csv files to multiple java objects , I have
> created separated classes corresponding to each CSV  and annotated the java
> classes. When a single class is annotated, Bindy works fine but as soon as I
> have one more annotated class then the following warning comes and Bindy
> goes for a toss.
>
> l) thread #0 - file://src/data] BindyCsvFactory                WARN
> Potentially invalid model: existing @DataField 'DCSi' replaced by 'ITEM'
> @CsvRecord(separator = ",", skipFirstLine = true)
>
> public class Item implements Serializable {
>
>          @DataField(pos = 1)
>           private String DCSi;
>
> ...
> }
>
> @CsvRecord(separator = ",", skipFirstLine = true)
> public class ItemLoc  implements Serializable {
>
>          @DataField(pos = 1)
>           private String ITEM;
>
>
> ...
> }
>
> Let me help resolve this.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Bindy-not-able-to-handle-multiple-annotated-classes-tp5752586.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to