[
https://issues.apache.org/jira/browse/CAY-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Huss updated CAY-1626:
---------------------------
Attachment: joda-patch.txt
The attached file has some issues:
- The string format of the timestamp is database specific so it can't be relied
upon. For example with Postgres this doesn't work. To avoid problems with the
driver changing the time zone you should modify the driver or just change the
default time zone of your app to use GMT.
- Using a string with this format limits the precision of the time value since
milliseconds are only given to 1 decimal place.
I'm interested in the Joda time library myself, so I took a stab at doing this
and also added support for some of the other useful joda classes.
So my patch has support for: DateTime, LocalDate, and LocalTime. It also
includes the custom serializers necessary for using these classes in an ROP
app. The patch has new classes only. The new extended types and serializers
aren't registered anywhere currently, so the user has to do that manually.
> Add JodaTime DateTime support
> -----------------------------
>
> Key: CAY-1626
> URL: https://issues.apache.org/jira/browse/CAY-1626
> Project: Cayenne
> Issue Type: Improvement
> Components: Database integration
> Affects Versions: 3.1M2
> Reporter: Marc O'Morain
> Attachments: DateTimeType.java, joda-patch.txt
>
>
> Here is some code that we wrote at Swrve to load/save jodatime DateTime
> objects with Cayenne
--
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