@@ -64,18 +64,17 @@ final class ReactiveNeo4jRepositoryFactory extends ReactiveRepositoryFactorySupp
64
64
this .mappingContext = mappingContext ;
65
65
}
66
66
67
- @ SuppressWarnings ("unchecked" )
68
67
@ Override
69
- public < T , ID > Neo4jEntityInformation <T , ID > getEntityInformation (Class < T > domainClass ) {
68
+ public Neo4jEntityInformation <?, ? > getEntityInformation (RepositoryMetadata metadata ) {
70
69
71
- Neo4jPersistentEntity <?> entity = mappingContext .getRequiredPersistentEntity (domainClass );
72
- return new DefaultNeo4jEntityInformation <>(( Neo4jPersistentEntity < T >) entity );
70
+ Neo4jPersistentEntity <?> entity = mappingContext .getRequiredPersistentEntity (metadata . getDomainType () );
71
+ return new DefaultNeo4jEntityInformation <>(entity );
73
72
}
74
73
75
74
@ Override
76
75
protected Object getTargetRepository (RepositoryInformation metadata ) {
77
76
78
- Neo4jEntityInformation <?, Object > entityInformation = getEntityInformation (metadata . getDomainType () );
77
+ Neo4jEntityInformation <?, ? > entityInformation = getEntityInformation (metadata );
79
78
Neo4jRepositoryFactorySupport .assertIdentifierType (metadata .getIdType (), entityInformation .getIdType ());
80
79
return getTargetRepositoryViaReflection (metadata , neo4jOperations , entityInformation );
81
80
}
@@ -108,15 +107,15 @@ protected RepositoryFragments getRepositoryFragments(RepositoryMetadata metadata
108
107
109
108
private RepositoryFragment <Object > createDSLPredicateExecutorFragment (RepositoryMetadata metadata , Class <?> implementor ) {
110
109
111
- Neo4jEntityInformation <?, Object > entityInformation = getEntityInformation (metadata . getDomainType () );
110
+ Neo4jEntityInformation <?, ? > entityInformation = getEntityInformation (metadata );
112
111
Object querydslFragment = instantiateClass (implementor , mappingContext , entityInformation , neo4jOperations );
113
112
114
113
return RepositoryFragment .implemented (querydslFragment );
115
114
}
116
115
117
116
private RepositoryFragment <Object > createDSLExecutorFragment (RepositoryMetadata metadata , Class <?> implementor ) {
118
117
119
- Neo4jEntityInformation <?, Object > entityInformation = getEntityInformation (metadata . getDomainType () );
118
+ Neo4jEntityInformation <?, ? > entityInformation = getEntityInformation (metadata );
120
119
Object querydslFragment = instantiateClass (implementor , entityInformation , neo4jOperations );
121
120
122
121
return RepositoryFragment .implemented (querydslFragment );
0 commit comments