Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1.RELEASE
-
Fix Version/s: None
-
Component/s: GENERAL OBJECTS
-
Labels:
Description
Steps:
- Create a jpa entity with a java.util.Date field and use @DateTimeFormat (whatever)
- use json all to generate Entity_Roo_Json.aj
- trying to deserialize a date with iso-8601 format (like javascrip's, yyyy-MM-ddThh:mm:ss) gets an error, forcing to rewrite the two deserialize methods for each entity
whatever was tried with style="M-", pattern="yyyy-MM-ddThh:mm:ss" and iso = ISO.DATE_TIME. This issue could be solved by customizing FlexJson's deserializer in the Entity_Roo_Json.aj using a flexjson.factories.DateObjectFactory with the list of patterns used by the entity's date fields