Skip to content

Commit 580d2a6

Browse files
koraktorschauder
authored andcommitted
DATAJPA-1449 - Remove reference to Specifications in documentation.
`Specifications` has been deprecated since 2.0, so it shouldn’t be mentioned in the documentation. Instead, refer to the default methods of `Specification`. Original pull request: #298.
1 parent e5cda61 commit 580d2a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,18 +739,18 @@ List<Customer> customers = customerRepository.findAll(isLongTermCustomer());
739739
----
740740
====
741741

742-
Why not create a query for this kind of data access? Using a single `Specification` does not gain a lot of benefit over a plain query declaration. The power of specifications really shines when you combine them to create new `Specification` objects. You can achieve this through the `Specifications` helper class we provide to build expressions similar to the following:
742+
Why not create a query for this kind of data access? Using a single `Specification` does not gain a lot of benefit over a plain query declaration. The power of specifications really shines when you combine them to create new `Specification` objects. You can achieve this through the default methods of `Specification` we provide to build expressions similar to the following:
743743

744744
.Combined Specifications
745745
====
746746
[source, java]
747747
----
748748
MonetaryAmount amount = new MonetaryAmount(200.0, Currencies.DOLLAR);
749749
List<Customer> customers = customerRepository.findAll(
750-
where(isLongTermCustomer()).or(hasSalesOfMoreThan(amount)));
750+
isLongTermCustomer().or(hasSalesOfMoreThan(amount)));
751751
----
752752
753-
`Specifications` offers some "`glue-code`" methods to chain and combine `Specification` instances. These methods let you extend your data access layer by creating new `Specification` implementations and combining them with already existing implementations.
753+
`Specification` offers some "`glue-code`" default methods to chain and combine `Specification` instances. These methods let you extend your data access layer by creating new `Specification` implementations and combining them with already existing implementations.
754754
====
755755

756756
include::{spring-data-commons-docs}/query-by-example.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)