Original Pull Request #2357Closes#2359
(cherry picked from commit f8ddf16c0cb85c8a5ce1427600f083720f61c914)
(cherry picked from commit a1094527a9e12a6a711e502aa2f65f285805de8e)
Original Pull Request
Closes#2326
(cherry picked from commit 03ecc48b09e42a041c9f04bc47801b36adf91306)
(cherry picked from commit 2fa15f772a294edc59dc79b2bb2ae18328f357b3)
When reading from Elasticsearch into a property of type Collection<T> (List<T> or Set<T>) the MappingElasticsearchConverter now can read both from the returned JSON:
an array of T objects - will put the objects in a corresponding collection
a single T object will put the single object into a corrsponding colletcion
This is implemented and tested for both: entities where the properties have setters and immutable classes that only provide an all-args constructor.
Original Pull Request #2282Closes#2280
(cherry picked from commit 86634ceb38dbc9d1a3985171a4bf12a6d5912612)
(cherry picked from commit 346c5cce580fc876162435c613cedcd3f62313e4)
Original Pull Request #2281Closes#2276
(cherry picked from commit 8377f64a8a919b31c37f337fc92c3ea8ee9154d8)
(cherry picked from commit a3ebd8be781b896afbb428422273b5e82d2c74f2)
Original Pull Request #2236Closes#2162
(cherry picked from commit 373be49f97fe333714d29ce5e78ace38d7b0354f)
(cherry picked from commit be70a398be3e8788f3ab11d476811f9aa6802e9c)
Original Pull Request #2182Closes#2135
(cherry picked from commit 259c43af19db269476d31bfe5df5554807b7b2f9)
(cherry picked from commit aa4aecacdf0596578577461af5129cf12c9a5c7b)
Original Pull Request #2197Closes#2191
(cherry picked from commit f90138076659e5452fd38444c85cfee0745b074c)
(cherry picked from commit ae66cbd619b012b898072ef059de71ac1626b330)
Original Pull Request #2169Closes#2170
(cherry picked from commit c826adb152fb1b00b49f9a8b69db8f969b9ba486)
(cherry picked from commit 7efd4b3be7ed5ebffe05c3722627559d1b57956c)