You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Babak Vahdat (JIRA)" <ji...@apache.org> on 2014/02/07 10:49:20 UTC

[jira] [Commented] (CAMEL-4916) @Section is a Key/Value pair annotation and should not be used to generate csv

    [ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894352#comment-13894352 ] 

Babak Vahdat commented on CAMEL-4916:
-------------------------------------

[~cmoulliard] this major bug is now more than 2 years old!

Maybe If you don’t have any free cycles to fix this then maybe “unassign" yourself so that others in the community can look into this?

> @Section is a Key/Value pair annotation and should not be used to generate csv
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-4916
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4916
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-bindy
>            Reporter: Charles Moulliard
>            Assignee: Charles Moulliard
>
> This model is not correct - @Section should not be used and not being mandatory as now 
> {code}
> import java.io.Serializable;
> import java.math.BigDecimal;
> import java.util.Date;
> import org.apache.camel.dataformat.bindy.annotation.CsvRecord;
> import org.apache.camel.dataformat.bindy.annotation.DataField;
> import org.apache.camel.dataformat.bindy.annotation.Section;
> @Section(number = 1)
> @CsvRecord(separator = ",", isOrdered = true)
> public class Order implements Serializable {
> 	private static final long serialVersionUID = -3798205974172544528L;
> 	// Positions of the fields start from 1 and not from 0
>     @DataField(pos = 1, position = 2)
>     private int orderNr;
>     @DataField(pos = 2, position = 1)
>     private String clientNr;
>     @DataField(pos = 3, position = 4)
>     private String firstName;
>     @DataField(pos = 4, position = 3)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)