mibo commented on issue #57: Support new date time API
URL: https://github.com/apache/olingo-odata4/pull/57#issuecomment-550144955
 
 
   Guess the description of what is solved is in the commit message: 
https://github.com/apache/olingo-odata4/pull/57/commits/1a2d1a91dc9871acc1c7d4f05c932e74f3075d87
   
   ```
   Support types of new Date/Time API
   
   The types of the new Date/Time API can now be used as property values.
   
   The following mappings are now supported
   
   EdmDateTimeOffset
   - java.time.Instant
   - java.time.ZonedDateTime
   - java.util.Calendar
   - java.util.Date
   - java.sql.Timestamp
   - java.lang.Long
   
   EdmDate
   - java.time.LocalDate
   - java.sql.Date
   
   EdmTimeOfDay
   - java.time.LocalTime
   - java.sql.Time
   
   Only these mappings capture the semantics correctly.
   
   For legacy reasons also supported are the following mappings are still
   supported:
   
   EdmDate
   - java.util.Calendar (date component in the TZ of the calendar)
   - java.util.Date     (date component in UTC)
   - java.sql.Timestamp (date component in UTC)
   - java.lang.Long     (date component in UTC)
   
   EdmTimeOfDay
   - java.util.Calendar (time component in the TZ of the calendar)
   - java.util.Date     (time component in UTC)
   - java.sql.Timestamp (time component in UTC)
   - java.lang.Long     (time component in UTC)
   
   For legacy reasons the default mapping types are unchanged (and remain
   semantically incorrect):
   
   EdmDateTimeOffset -> java.sql.Timestamp
   EdmDate           -> java.util.Calendar
   EdmTimeOfDay      -> java.util.Calendar
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to