You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Reinhard Luft (JIRA)" <ji...@apache.org> on 2011/08/15 15:37:27 UTC

[jira] [Created] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
-----------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-4337
                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
             Project: Camel
          Issue Type: Task
          Components: camel-bindy
    Affects Versions: 2.7.1
            Reporter: Reinhard Luft
             Fix For: 2.9.0


When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.

Example:

@DataField(pos = 3, trim = true, length = 20, clip = true)
private String lastName;

This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.

For example this would be useful when dumping the csv file into a database.

Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Posted by "Reinhard Luft (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reinhard Luft updated CAMEL-4337:
---------------------------------

    Attachment: trimandcliptrunk.patch

> Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
>             Project: Camel
>          Issue Type: Task
>          Components: camel-bindy
>    Affects Versions: 2.7.1
>            Reporter: Reinhard Luft
>             Fix For: 2.9.0
>
>         Attachments: trimandcliptrunk.patch
>
>
> When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.
> Example:
> @DataField(pos = 3, trim = true, length = 20, clip = true)
> private String lastName;
> This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.
> For example this would be useful when dumping the csv file into a database.
> Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4337:
----------------------------------

    Assignee: Claus Ibsen

> Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
>             Project: Camel
>          Issue Type: Task
>          Components: camel-bindy
>    Affects Versions: 2.7.1
>            Reporter: Reinhard Luft
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>         Attachments: trimandcliptrunk.patch
>
>
> When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.
> Example:
> @DataField(pos = 3, trim = true, length = 20, clip = true)
> private String lastName;
> This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.
> For example this would be useful when dumping the csv file into a database.
> Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4337:
-------------------------------

    Estimated Complexity: Novice  (was: Unknown)
              Issue Type: Improvement  (was: Task)

> Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>    Affects Versions: 2.7.1
>            Reporter: Reinhard Luft
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>         Attachments: trimandcliptrunk.patch
>
>
> When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.
> Example:
> @DataField(pos = 3, trim = true, length = 20, clip = true)
> private String lastName;
> This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.
> For example this would be useful when dumping the csv file into a database.
> Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4337.
--------------------------------

    Resolution: Fixed

Thanks for the patch. Keep em coming. I am sure there are other improvements to Bindy that would be great.

> Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>    Affects Versions: 2.7.1
>            Reporter: Reinhard Luft
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>         Attachments: trimandcliptrunk.patch
>
>
> When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.
> Example:
> @DataField(pos = 3, trim = true, length = 20, clip = true)
> private String lastName;
> This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.
> For example this would be useful when dumping the csv file into a database.
> Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4337) Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CAMEL-4337:
-------------------------------

    Fix Version/s: 2.8.2

> Bindy - Proposal: Evaluate DataField annotation properties trim, length, clip when marshalling BindyCsvDataFormat
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4337
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>    Affects Versions: 2.7.1
>            Reporter: Reinhard Luft
>            Assignee: Claus Ibsen
>             Fix For: 2.8.2, 2.9.0
>
>         Attachments: trimandcliptrunk.patch
>
>
> When generating a csv file from a model object with a DataField annotated property the DataField properties trim, length, clip should be evaluated in order to control the maximum length of a field in the csv record.
> Example:
> @DataField(pos = 3, trim = true, length = 20, clip = true)
> private String lastName;
> This should produce a field in the csv record, which length is not greater than 20 even though lastName may be longer and that has no leading or trailing spaces.
> For example this would be useful when dumping the csv file into a database.
> Please see the attached patch for changes in BindyCsvFactory and a unit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira