We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a31052c commit 9f827faCopy full SHA for 9f827fa
src/main/asciidoc/new-features.adoc
@@ -1,6 +1,14 @@
1
[[new-features]]
2
= New & Noteworthy
3
4
+[[new-features.2-5-0]]
5
+== What's New in Spring Data JPA 2.5
6
+
7
+There is a new `getById` method in the `JpaRepository` which will replace `getOne`, which is now deprecated.
8
+Since this method returns a reference this changes the behaviour of an existing `getById` method which before was implemented by query derivation.
9
+This in turn might lead to an unexpected `LazyLoadingException` when accessing attributes of that reference outside a transaction.
10
+To avoid this please rename your existing `getById` method to `getXyzById` with `Xyz` being an arbitrary string.
11
12
[[new-features.1-11-0]]
13
== What's New in Spring Data JPA 1.11
14
0 commit comments