Skip to content

Commit 97de471

Browse files
authored
Update README.md
1 parent 6a5a7c1 commit 97de471

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ productRepository.findById(1L, ProductEntityGraph
218218

219219
## Repository default EntityGraph
220220

221-
You can declare at most one `EntityGraph` per repository by overriding `EntityGraphRepository#defaultEntityGraph` method.
221+
You can declare at most one `default EntityGraph` per repository by overriding `EntityGraphRepository#defaultEntityGraph` method.
222222

223-
Calling **any** repository query method - custom or pre-defined - without `EntityGraph` or with an `EntityGraph#NOOP` equivalent will lead to the `DefaultEntityGraph` usage. Otherwise, the `EntityGraph` passed as query method argument will always have priority.
223+
Calling **any** repository query method - custom or pre-defined - without `EntityGraph` or with an `EntityGraph#NOOP` equivalent will lead to the `default EntityGraph` usage. Otherwise, the `EntityGraph` passed as query method argument will always have priority.
224224

225225
You could declare a repository as follows :
226226
```java
@@ -235,7 +235,7 @@ interface MyRepository extends EntityGraphCrudRepository<MyEntity, Long> {
235235
}
236236
```
237237

238-
The following snippets will lead to the `DefaultEntityGraph` usage:
238+
The following snippets will lead to the `default EntityGraph` usage:
239239
```java
240240
myRepository.findById(1L);
241241
```
@@ -246,7 +246,7 @@ myRepository.findById(1L, EntityGraph.NOOP);
246246
myRepository.findByName("bar");
247247
```
248248

249-
The following snippets will ignore the `DefaultEntityGraph` and instead use the `EntityGraph` passed as argument:
249+
The following snippets will ignore the `default EntityGraph` and instead use the `EntityGraph` passed as argument:
250250
```java
251251
myRepository.findById(1L, NamedEntityGraph.loading("alice"));
252252
```

0 commit comments

Comments
 (0)