You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Charles Moulliard (Created) (JIRA)" <ji...@apache.org> on 2012/01/18 18:52:40 UTC
[jira] [Created] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
@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
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
Posted by "Babak Vahdat (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Babak Vahdat updated CAMEL-4916:
--------------------------------
Comment: was deleted
(was: The class mentioned is just simply part of the camel-bindy's own unit-testing (src/test/java) and doesn't belong to the public API. So that I just wonder if we should really mark this ticket as a Major-Bug?
Or do I miss something?)
> @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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188577#comment-13188577 ]
Babak Vahdat commented on CAMEL-4916:
-------------------------------------
The class mentioned is just simply part of the camel-bindy's own unit-testing (src/test/java) and doesn't belong to the public API. So that I just wonder if we should really mark this ticket as a Major-Bug?
Or do I miss something?
> @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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
Posted by "Charles Moulliard (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles Moulliard reassigned CAMEL-4916:
----------------------------------------
Assignee: Charles Moulliard
> @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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188576#comment-13188576 ]
Babak Vahdat commented on CAMEL-4916:
-------------------------------------
The class mentioned is just simply part of the camel-bindy's own unit-testing (src/test/java) and doesn't belong to the public API. So that I just wonder if we should really mark this ticket as a Major-Bug?
Or do I miss something?
> @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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4916) @Section is a Key/Value pair
annotation and should not be used to generate csv
Posted by "Charles Moulliard (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188993#comment-13188993 ]
Charles Moulliard commented on CAMEL-4916:
------------------------------------------
>From my point of view, this is a bug related to a change that somebody has made in the code. To be able to use position when we generate the CSV message, @section is mandatory now. That was not the case before. So there is a bug as we must change the code to revert the modification.
> @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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira