[
https://issues.jboss.org/browse/FORGE-1423?page=com.atlassian.jira.plugin...
]
Lincoln Baxter III updated FORGE-1423:
--------------------------------------
Fix Version/s: 2.x Future
REST resources generated by the REST plugin do not abstract
java.sql.* types
----------------------------------------------------------------------------
Key: FORGE-1423
URL:
https://issues.jboss.org/browse/FORGE-1423
Project: Forge
Issue Type: Bug
Components: Builtin Plugins
Affects Versions: 1.4.3.Final, 2.0.0.Beta4
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Fix For: 2.x Future
When Date/Time temporal types are serialized or deserialized by the generated REST
resources, the underlying {{java.sql.Date/java.sql.Time}} values in JPA entities (and also
DTOs) are referenced directly by Jackson.
This leads to several problems:
* The serialized time values lack any timezone info leading to date/time shifting issues
when they're deserialized back.
* By default, Jackson deserializes properties in JSON objects to {{java.util.Date}}
instances only for a subset of ISO8601 formats. Partial time values are not a supported
format and thus time values submitted by clients cannot be parsed.
For more info see:
http://wiki.fasterxml.com/JacksonFAQDateHandling
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira