[
https://issues.apache.org/jira/browse/CAMEL-12334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405834#comment-16405834
]
ASF GitHub Bot commented on CAMEL-12334:
----------------------------------------
hemangajmera commented on issue #2254: CAMEL-12334: Mapped date to LocalDate
and time to LocalTime
URL: https://github.com/apache/camel/pull/2254#issuecomment-374483362
Changes are done. Please review it. The default value of parameter is set
such that it does not use ZonedDateTime, since we cannot marshal/unmarshal to
ZonedDateTime from "yyyy-MM-dd" format of Date which is used by salesforce. So
I thought it will be better to have default value which works out of the box.
However this break backward compatibility for generating the DTO, unless
useZonedDateTimeForDate and useZonedDateTimeForDate are set to true.
I have also updated the documents to reflect these changes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Salesforce DTO does not use correct datatype for "date" and "time" field
> ------------------------------------------------------------------------
>
> Key: CAMEL-12334
> URL: https://issues.apache.org/jira/browse/CAMEL-12334
> Project: Camel
> Issue Type: Improvement
> Components: camel-salesforce
> Affects Versions: 2.20.2
> Reporter: Hemang Ajmera
> Assignee: Zoran Regvart
> Priority: Major
> Labels: maven
> Fix For: 2.20.3, 2.21.1, 2.22.0
>
>
> The DTO classes generated by the Maven plugin uses ZonedDateTime for all three
> * datetime
> * date
> * time
> The generation works fine, but is is not able to marshal/unmarshal correctly.
> The DTO should use different kind of field. My suggestion is to use
> * ZonedDateTime for datetime
> * LocalDate for date
> * LocalTime for time
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)