Commit Graph

27 Commits

Author SHA1 Message Date
Oliver Gierke
4c97011b2d DATAREST-915 - Prepare next development iteration. 2016-11-03 18:20:10 +01:00
Oliver Gierke
6d20ab6df5 DATAREST-915 - Release version 2.5.5 (Hopper SR5). 2016-11-03 17:56:32 +01:00
Oliver Gierke
7b357db535 DATAREST-903 - Prepare next development iteration. 2016-09-29 14:20:09 +02:00
Oliver Gierke
e09b22bf94 DATAREST-903 - Release version 2.5.4 (Hopper SR4). 2016-09-29 13:54:03 +02:00
Mark Paluch
0a49b099bb DATAREST-909 - Revert Jackson-aware Sort and Pageable translation.
Revert changes introduced by DATAREST-883 - Jackson-aware field translation in Sort and DATAREST-906 - Consider default pageable if Sort is null. The way how Sort translation was implemented breaks Sort and Pageable argument resolution for custom controllers as a domain type is always required. Argument resolution fails if the related domain type cannot be resolved.

 Related pull requests: #231, #222.
2016-09-27 09:12:16 +02:00
Mark Paluch
5e163d1913 DATAREST-906 - Consider default Pageable even if Sort is empty.
We now resolve default configured Pageable without dropping them if their Sort is empty. Previously, any default Pageable was dropped if its Sort was empty which caused null being handed to controller methods of @RepositoryRestController instances.

Original pull request: #231.
2016-09-23 15:21:07 +02:00
Oliver Gierke
4e3b12db7d DATAREST-842 - Prepare next development iteration. 2016-09-20 11:19:00 +02:00
Oliver Gierke
dd90d3b32b DATAREST-842 - Release version 2.5.3 (Hopper SR3). 2016-09-20 10:54:50 +02:00
Oliver Gierke
74895680eb DATAREST-872 - Polishing.
Simplified types used for testing. Removed unnecessary repository interface.

Related pull request: #221.
2016-09-19 10:35:48 +02:00
Alex Leigh
3494c5eacc DATAREST-872 - PersistentEntityJackson2Module now serializes JsonTypeInfo correctly.
NestedEntitySerializer now overrides serializeWithType(…) so that @JsonTypeInfo is rendered properly.

Related pull request: #221.
2016-09-19 10:35:48 +02:00
Oliver Gierke
3b2c82da49 DATAREST-883 - Polishing.
Switched to use @RequiredArgsConstructor where possible. Slightly rearranged test cases. Inlined JacksonMappingAwareSortTranslator to not expose it as bean unless necessary. Use static Jackson BeanClassIntrospector to avoid unnecessary recreation.

Original pull request: #222.
2016-09-19 08:05:58 +02:00
Mark Paluch
9c14170334 DATAREST-883 - Consider Jackson field names in Sort mapping.
We now consider Jackson field names when resolving Sort arguments. Domain model properties annotated with @JsonProperty("sales") can be specified by their Jackson-mapped field name in sort arguments. Field names are mapped to their according persistent property names to be used in repository query method sorting. Unknown field names are silently dropped.

Original pull request: #222.
2016-09-19 08:05:58 +02:00
Oliver Gierke
95d62fb18c DATAREST-864 - NestedEntitySerializer now handles Maps correctly.
Previously, NestedEntitySerializer failed to handle Maps correctly as the logic to convert the found values to nested resources tried to handle the values as is, not explicitly looking at the values instead.

We now use an explicit code path to turn the values into resources so that links pointing to other resources are rendered correctly.

Original pull request: #219.
2016-09-19 07:15:25 +02:00
Oliver Gierke
7ab5efcf43 DATAREST-880 - Prevent nested-entity-as-resource handling for unwrapped properties.
We now exclude properties that are marked as to be unwrapped from getting the nested-entity-as-resource behavour applied as it doesn't make any sense.
2016-08-29 19:28:22 +02:00
Oliver Gierke
d58d628098 DATAREST-804 - Prepare next development iteration. 2016-06-15 14:17:52 +02:00
Oliver Gierke
c0262db1d3 DATAREST-804 - Release version 2.5.2 (Hopper SR2). 2016-06-15 13:45:52 +02:00
Oliver Gierke
c3bdae7520 DATAREST-802 - Prepare next development iteration. 2016-04-06 22:51:43 +02:00
Oliver Gierke
df7499608b DATAREST-802 - Release version 2.5.1 (Hopper SR1). 2016-04-06 22:32:15 +02:00
Oliver Gierke
69d62019d6 DATAREST-790 - Prepare next development iteration. 2016-04-06 16:38:18 +02:00
Oliver Gierke
c49a29a247 DATAREST-790 - Release version 2.5 GA (Hopper). 2016-04-06 16:35:59 +02:00
Oliver Gierke
e5a1f2d1cf DATAREST-794 - Upgraded to Solr 5.5 to make integration tests work again. 2016-04-01 10:42:18 +02:00
Oliver Gierke
05c723fe50 DATAREST-782 - Prepare next development iteration. 2016-03-18 11:15:51 +01:00
Oliver Gierke
03a720d1c0 DATAREST-782 - Release version 2.5 RC1 (Hopper). 2016-03-18 11:15:00 +01:00
Oliver Gierke
4430e78966 DATAREST-787 - Remove dependency to JSON Patch library.
Switched to own JSON Patch implementation built by Craig Walls for Spring Sync back in the days.
2016-03-18 09:47:27 +01:00
Oliver Gierke
6075f3052a DATAREST-782 - Fixed build after Spring 4.2.5 update.
Upgraded to JSONPath 1.1.0 as 0.9 is not supported with Spring 4.2 anymore. Tweaked integration tests due to changed semantics and internals of JSONPath >= 1.0.
2016-03-17 21:29:20 +01:00
Oliver Gierke
2be6b2b6a9 DATAREST-776, DATAREST-775 - Integration tests for lookup types and nested associations.
Added shop integration test example that shows and tests nested associations and both unique and collection lookup type references.
2016-02-29 19:40:12 +01:00
Oliver Gierke
892409da2c DATAREST-774 - Separated integration tests from core project to avoid classpath overlap.
Extracted store specific tests into separate test modules to prevent classpath overlap between projects. Those tests are now executed in an "it" build profile to prevent the tests being packaged for distribution on release.

Use Map-based repositories and mapping contexts for test in the Core and WebMvc module.

Slightly changed the configuration API for lookup types on RepositoryRestConfiguration.

Related ticket: DATAREST-776.
2016-02-29 19:40:10 +01:00