diff --git a/src/main/asciidoc/index.adoc b/src/main/asciidoc/index.adoc index 6e02d38ff..dcb247af7 100644 --- a/src/main/asciidoc/index.adoc +++ b/src/main/asciidoc/index.adoc @@ -14,7 +14,9 @@ NOTE: Copies of this document may be made for your own use and for distribution toc::[] include::preface.adoc[] + :leveloffset: +1 +include::new-features.adoc[] include::{spring-data-commons-docs}/dependencies.adoc[] include::{spring-data-commons-docs}/repositories.adoc[] :leveloffset: -1 diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 79ba9d240..e6b5394fd 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -445,6 +445,23 @@ public interface GroupRepository extends CrudRepository { ---- ==== +It is also possible to define _ad-hoc_ entity graphs via `@EntityGraph`. The provided `attributePaths` will be translated into the according `EntityGraph` without the need of having to explicitly add `@NamedEntityGraph` to your domain types. + +.Using AD-HOC entity graph definition on an repository query method. +==== +[source, java] +---- +@Repository +public interface GroupRepository extends CrudRepository { + + @EntityGraph(attributePaths = { "members" }) + GroupInfo getByGroupName(String name); + +} +---- +==== + + include::{spring-data-commons-docs}/repository-projections.adoc[leveloffset=+2] [[jpa.stored-procedures]] diff --git a/src/main/asciidoc/new-features.adoc b/src/main/asciidoc/new-features.adoc new file mode 100644 index 000000000..80daf06c6 --- /dev/null +++ b/src/main/asciidoc/new-features.adoc @@ -0,0 +1,13 @@ +[[new-features]] += New & Noteworthy + +[[new-features.1-10-0]] +== What's new in Spring Data JPA 1.10 + +* Support for <> in repository query methods. +* Support for <>. +* The following annotations have been enabled to build own, composed annotations: `@EntityGraph`, `@Lock`, `@Modifying`, `@Query`, `@QueryHints` and `@Procedure`. +* Support for `Contains` keyword on collection expressions. +* AttributeConverters for `ZoneId` of JSR-310 and ThreeTenBP. +* Upgrade to Querydsl 4, Hibernate 5, OpenJPA 2.4 and EclipseLink 2.6.1. +