You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2019/09/30 15:23:00 UTC

[jira] [Updated] (CAMEL-13926) Add annotation to Bindy dataformat for custom column name

     [ https://issues.apache.org/jira/browse/CAMEL-13926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-13926:
--------------------------------
    Priority: Minor  (was: Trivial)

> Add annotation to Bindy dataformat for custom column name
> ---------------------------------------------------------
>
>                 Key: CAMEL-13926
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13926
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-bindy
>            Reporter: Mikael Andersson Wigander
>            Priority: Minor
>
> Add option to name a column to be used instead of property name as in the following example:
>  
>   
> {code:java}
> @CsvRecord(separator = ",") public class Order { @DataField(pos = 1) private int orderNr; @Link private Client client; @DataField(pos = 5) private String isinCode; @DataField(name = "Name", pos = 6) private String instrumentName; @DataField(pos = 7, precision = 2) private BigDecimal amount; @DataField(pos = 8) private String currency; @DataField(pos = 9, pattern = "dd-MM-yyyy") private Date orderDate; }{code}
> It affects the @DataField annotation and only for marshalling to csv.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)