Skip to content

Commit 2add393

Browse files
committed
Polishing.
Refine docs, use records for non-public API.
1 parent 4118196 commit 2add393

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot/EntityGraphLookup.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@
4242
* @author Mark Paluch
4343
* @since 4.0
4444
*/
45-
class EntityGraphLookup {
46-
47-
private final EntityManagerFactory entityManagerFactory;
48-
49-
public EntityGraphLookup(EntityManagerFactory entityManagerFactory) {
50-
this.entityManagerFactory = entityManagerFactory;
51-
}
45+
record EntityGraphLookup(EntityManagerFactory entityManagerFactory) {
5246

5347
@SuppressWarnings("unchecked")
5448
public @Nullable AotEntityGraph findEntityGraph(MergedAnnotation<EntityGraph> entityGraph,

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot/QueriesFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
import org.springframework.util.StringUtils;
5555

5656
/**
57-
* Factory for {@link AotQueries}.
57+
* Factory for {@link AotQueries}. Requires {@link EntityManagerFactory} for named query resolution and
58+
* {@link Metamodel} for query derivation to navigate the entity model.
5859
*
5960
* @author Mark Paluch
6061
* @author Christoph Strobl

0 commit comments

Comments
 (0)