File tree 2 files changed +4
-2
lines changed
spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class AotMetamodel implements Metamodel {
47
47
private final Lazy <EntityManager > entityManager = Lazy .of (() -> entityManagerFactory .get ().createEntityManager ());
48
48
49
49
public AotMetamodel (Set <Class <?>> managedTypes ) {
50
- this ("dynamic-tests " , managedTypes );
50
+ this ("AotMetamodel " , managedTypes );
51
51
}
52
52
53
53
private AotMetamodel (String persistenceUnit , Set <Class <?>> managedTypes ) {
Original file line number Diff line number Diff line change 20
20
21
21
import java .lang .reflect .Method ;
22
22
import java .util .Map ;
23
+ import java .util .stream .Collectors ;
23
24
24
25
import org .jspecify .annotations .Nullable ;
25
26
@@ -71,7 +72,8 @@ public JpaRepositoryContributor(AotRepositoryContext repositoryContext) {
71
72
72
73
super (repositoryContext );
73
74
74
- AotMetamodel amm = new AotMetamodel (repositoryContext .getResolvedTypes ());
75
+ AotMetamodel amm = new AotMetamodel (repositoryContext .getResolvedTypes ().stream ()
76
+ .filter (it -> !it .getName ().startsWith ("jakarta.persistence" )).collect (Collectors .toSet ()));
75
77
76
78
this .persistenceProvider = PersistenceProvider .fromEntityManagerFactory (amm .getEntityManagerFactory ());
77
79
this .queriesFactory = new QueriesFactory (amm .getEntityManagerFactory (), amm );
You can’t perform that action at this time.
0 commit comments