DATAMONGO-2208 - Deprecate Kotlin extensions providing a KClass overload.

We promote the usage of reified Kotlin API usage (myMethod<Person>() instead of myMethod(Person::class)) to facilitate a single and more idiomatic approach to Kotlin API usage.

Extension methods accepting KClass are deprecated now.

Original Pull Request: #648
This commit is contained in:
Mark Paluch
2019-02-21 10:53:28 +01:00
committed by Christoph Strobl
parent 18fa4deeb5
commit 88d5e4367f
17 changed files with 90 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
* Template API delete by entity considers the version property in delete queries.
* Repository deletes now throw `OptimisticLockingFailureException` when a versioned entity cannot be deleted.
* Support `Range<T>` in repository between queries.
* Kotlin extension methods accepting `KClass` are deprecated now in favor of `reified` methods.
[[new-features.2-1-0]]
== What's New in Spring Data MongoDB 2.1