Commit Graph

1821 Commits

Author SHA1 Message Date
mibo a110e09203
Merge pull request #55 from danielfernandez/olingo-1395
[OLINGO-1395] Fixed parsing error when ReturnType contains Annotation
2019-11-27 08:31:24 +01:00
Michael Bolz 35e2302576 [OLINGO-1114] Minor test fix 2019-11-26 07:57:47 +01:00
mibo 820b462f49
Merge pull request #28 from ninckblokje/master
[OLINGO-1114] Test + fix for NULL value type
2019-11-26 07:33:20 +01:00
mibo ca876f1fb9
Merge pull request #62 from apache/OLINGO-1408
[Olingo 1408] Java 8 DateTime API support by Olingo
2019-11-26 07:25:52 +01:00
ramya vasanth 636fdde13d [OLINGO-1408] Fix tests 2019-11-26 11:42:50 +05:30
Michael Bolz b81bc23a54 [OLINGO-1411] Fixed typo 2019-11-25 21:30:33 +01:00
Michael Bolz ec603917e5 [OLINGO-1408] Minor change to fix tests 2019-11-25 21:28:36 +01:00
Michael Bolz 302f991e5b [OLINGO-1408] Applied code formatter 2019-11-25 20:49:09 +01:00
Adrian Görler 932af8fb5d [OLINGO-1408] Support new date time API (#57)
* Fix usage of Calendar in tests

The tests use Calendar instances. For some test cases the time zone of a
Calendar instance is changed and then passed to the valueToString
method.

Unfortunately after just changing the time zone the Calendar only
changes the time zone but not the value of the calculated fields like
YEAR, MONTH, ... . These fields are recalculated only if they are read
by get(YEAR), get(MONTH), ... . The implementation of valueToString
clones the Calendar instance before fields are computed resulting in
a corrupt clone.

This change

1) makes sure that the test the fields in the Calendar instances used
   in the tests are computed
2) makes sure that the valueToString method triggers a computation of
the fields before cloning the Calendar

* 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

* Allow additional (but semantically wrong) conversions

EdmDate -> java.util.Date, java.sql.Timestamp
EdmTimeOfDay -> java.util.Date, java.sql.Timestamp
2019-11-25 19:32:58 +01:00
Artem Smotrakov 98d445a874 [OLINGO-1411] Better header parsing
* [OLINGO-1411] Better header parsing
2019-11-25 16:45:35 +01:00
Artem Smotrakov db50f59689 [OLINGO-1410] Better XMLMetadata parsing
* [OLINGO-1410] Better XMLMetadata parsing
* Minor change in DEFAULT_ALLOWED_CLASSES handling
* Applied code-formatter
2019-11-25 09:34:41 +01:00
mibo 43010c72e3
Merge pull request #56 from ianwallen/OLINGO-1400
[OLINGO-1400] Remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer
2019-11-18 09:10:25 +01:00
mibo 3cf93d5e06
Merge pull request #59 from artem-smotrakov/better-xml-parsing
Better XML parsing
2019-11-18 09:02:48 +01:00
Artem Smotrakov c3f982db3d [OLINGO-1409] Better XML parsing 2019-11-13 11:57:03 +01:00
mibo 85d660c6d8 [OLINGO-1407] Updated dependency versions 2019-11-12 19:45:32 +01:00
mibo 5948974ad2 [OLINGO-1409] XML serializer defaults 2019-11-12 04:59:33 +01:00
mibo ae416b5609 [OLINGO-1407] Updated Jackson version 2019-11-06 19:28:37 +01:00
Ian Allen f4a6baeaee OLINGO-1400 - remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer 2019-09-26 10:38:44 -03:00
ramya vasanth 6c2103ccd4 [OLINGO-1391]Code Improvements 2019-09-13 14:28:48 +05:30
ramya vasanth 8f4d031957 [OLINGO-1155]Discrepency in Next Link shown in delta request and normal request 2019-09-13 12:48:26 +05:30
ramya vasanth b5be472097 [OLINGO-1397]Handle post requests when there is no content type and payload 2019-09-13 12:13:46 +05:30
ramya vasanth 7049f4ebf0 [OLINGO-1391]Code Improvements 2019-09-12 15:24:46 +05:30
ramya vasanth 7f3f9c5261 [OLINGO-1368]Bug Fix for In operator support 2019-09-12 13:21:24 +05:30
Daniel Fernández 60d5adaff3 [OLINGO-1395] Fixed parsing error when ReturnType contains Annotation 2019-09-10 11:56:58 +00:00
ramya vasanth 21d874d255 [OLINGO-1155]Bug Fixes for delta support in Json format 2019-09-09 12:05:44 +05:30
ramya vasanth 510b213cd6 [OLINGO-1393]Validate the values for a Decimal data type as per latest spec 2019-09-09 10:51:15 +05:30
ramya vasanth b13071f980 Merge branch 'olingojava8' of https://git-wip-us.apache.org/repos/asf/olingo-odata4 2019-09-09 09:54:31 +05:30
ramya vasanth 9f8cbc6fcc [OLINGO-1391]OData V4: Move the olingo library to java 8 2019-09-04 09:17:51 +05:30
Ramesh Reddy 6c3781f178 OLINGO-1355: correcting the error code check 2019-09-01 20:57:06 -05:00
Ramesh Reddy 74587d98f5 OLINGO-1383 2019-09-01 20:35:46 -05:00
Ramesh Reddy 9e94d9521f Merge branch 'pr54' 2019-09-01 20:24:41 -05:00
Archana Rai 73842ec07b [OLINGO-1390] Service Resolution variable for spring apps 2019-08-29 11:04:04 +05:30
ramya vasanth 7632ec7268 [OLINGO-1155]Delta support in Json format 2019-08-29 09:51:44 +05:30
Steven Hawkins 7da68d1138 OLINGO-1389 adding support for posting to a navigation 2019-08-27 20:30:11 -04:00
shawkins a19ab7cb1d OLINGO-1386 refinements for apply support 2019-08-22 10:55:00 -04:00
mibo d6bb1da82a
[OLINGO-1377] add condition for parsing 'floating' value of Scale facet type
[OLINGO-1377] add condition for parsing "floating" value of Scale facet type
2019-08-21 19:03:25 +02:00
mibo 3001967be3 [OLINGO-1383] Update dependency versions 2019-08-21 04:53:48 +02:00
dsoni 8dc08e8c57 add floating property facet type 2019-08-13 18:20:22 -07:00
ramya vasanth e365059900 [OLINGO-1380] OData V4: Response header information is lost in case of exceptions 2019-08-02 12:45:02 +05:30
ramya vasanth 405fb76088 [OLINGO-1375]OData V4: EntitySet in function Import need not be prefixed with namespace 2019-06-27 14:26:41 +05:30
ramya vasanth aca474ff64 [OLINGO-1368]OData V4: Support In Operator in filters 2019-06-17 14:23:36 +05:30
ramya vasanth 0c7460a2a2 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/olingo-odata4.git 2019-05-15 11:30:24 +05:30
ramya vasanth c41d10e8dc [OLINGO-1062] Code improvements for support of annotations 2019-05-15 11:29:01 +05:30
mibo 2a509a3bca
Merge pull request #51 from DirkMahler/master
[OLINGO-1357] use map to cache EdmPrimitiveTypeKind values for lookup
2019-05-14 21:09:21 +02:00
ramya vasanth 109cde8d80 [OLINGO-1276]Modifying tests 2019-05-14 15:30:35 +05:30
ramya vasanth bf12185b59 [OLINGO-1276]Problem with ClientEntitySetIterator 2019-05-14 15:15:33 +05:30
ramya vasanth 9244d682f7 [OLINGO-1358] Substringof Method support 2019-05-14 14:51:23 +05:30
Dirk Mahler 7ff8ffdf37 OLINGO-1357 use s map to cache EdmPrimitiveTypeKind values for lookup 2019-05-13 14:13:40 +02:00
mibo 24fed9b1b6 [OLINGO-1330] cache name in getName() 2019-05-10 17:59:17 +02:00
mibo ebf05a5e64 [OLINGO-1351] Fix missing version for httpcore-osgi used in test 2019-05-10 17:20:07 +02:00