DescriptionSee http://code.google.com/p/datanucleus-appengine/issues/detail?id=20
This patch updates the store process to check any java.util.Date fields that are annotated with @Temporal(DATE), or @Temporal(TIME) and only persists the important part. Obviously from the user point of view there is little to see different from now (e.g if persisting as @Temporal(TIME) then the time components are still correct on retrieval as they were in GAE/J v1.x, just that before the date components would have been preserved too).
Adds a test for the 3 different combinations.
A logical follow on to this would be to allow persistence of java.sql.Date/Time fields; at the moment these get an exception from appengine.api.XXX saying not a supported class (even though they are really just java.util.Dates!), so we could intercept store and retrieve and present a java.util.Date to the persistence mechanism since its so picky. Then there is java.util.Calendar which could have the same treatment ...
Patch Set 1 #
MessagesTotal messages: 2
|