You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/16 10:06:27 UTC
[jira] [Resolved] (CAMEL-4337) Bindy - Proposal: Evaluate DataField
annotation properties trim, length, clip when marshalling
BindyCsvDataFormat
[ 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