Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CC70D200D48 for ; Wed, 15 Nov 2017 02:18:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CAC77160C08; Wed, 15 Nov 2017 01:18:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1CA50160BF4 for ; Wed, 15 Nov 2017 02:18:03 +0100 (CET) Received: (qmail 8077 invoked by uid 500); 15 Nov 2017 01:18:03 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 8068 invoked by uid 99); 15 Nov 2017 01:18:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2017 01:18:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9465DC1710 for ; Wed, 15 Nov 2017 01:18:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6y-q92xZQDZ0 for ; Wed, 15 Nov 2017 01:18:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 52C965FDB9 for ; Wed, 15 Nov 2017 01:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 972FBE0BCB for ; Wed, 15 Nov 2017 01:18:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 32DF7240CE for ; Wed, 15 Nov 2017 01:18:00 +0000 (UTC) Date: Wed, 15 Nov 2017 01:18:00 +0000 (UTC) From: "Khaled AlTurkestani (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12009) Bindy - Missing Headers from OneToMany Field MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Nov 2017 01:18:05 -0000 [ https://issues.apache.org/jira/browse/CAMEL-12009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16252792#comment-16252792 ] Khaled AlTurkestani commented on CAMEL-12009: --------------------------------------------- Created PR: https://github.com/apache/camel/pull/2092 > Bindy - Missing Headers from OneToMany Field > -------------------------------------------- > > Key: CAMEL-12009 > URL: https://issues.apache.org/jira/browse/CAMEL-12009 > Project: Camel > Issue Type: Bug > Components: camel-bindy > Reporter: Khaled AlTurkestani > Priority: Minor > > When generating a CSV header, the code doesn't follow the @OneToMany field and thus doesn't print its fields in the header. For example, when marshalling a list of Orders (List) where the classes are the ones below: > {code} > @CsvRecord(separator = ",", generateHeaderColumns = true) > public class Order { > @DataField(pos = 1) > private int orderNumber; > @DataField(pos = 2) > private String customerName; > @OneToMany > private List items; > } > {code} > {code} > @CsvRecord(separator = ",", generateHeaderColumns = true) > public class OrderItem { > @DataField(pos = 3) > private String sku; > @DataField(pos = 4) > private int quantity; > @DataField(pos = 5) > private int unitPrice; > } > {code} > we get the following header: > +orderNumber,customerName+ > when, instead, we should be getting the following header: > +orderNumber,customerName,sku,quantity,unitPrice+ -- This message was sent by Atlassian JIRA (v6.4.14#64029)