@@ -101,8 +101,8 @@ public class MetadataImpl implements MetadataImplementor, Serializable {
101
101
private final Map <String , FetchProfile > fetchProfileMap ;
102
102
private final Map <String , String > imports ;
103
103
private final Map <String , IdentifierGeneratorDefinition > idGeneratorDefinitionMap ;
104
- private final Map <String , NamedHqlQueryDefinition > namedQueryMap ;
105
- private final Map <String , NamedNativeQueryDefinition > namedNativeQueryMap ;
104
+ private final Map <String , NamedHqlQueryDefinition <?> > namedQueryMap ;
105
+ private final Map <String , NamedNativeQueryDefinition <?> > namedNativeQueryMap ;
106
106
private final Map <String , NamedProcedureCallDefinition > namedProcedureCallMap ;
107
107
private final Map <String , NamedResultSetMappingDescriptor > sqlResultSetMappingMap ;
108
108
private final Map <String , NamedEntityGraphDefinition > namedEntityGraphMap ;
@@ -123,8 +123,8 @@ public MetadataImpl(
123
123
Map <String , FetchProfile > fetchProfileMap ,
124
124
Map <String , String > imports ,
125
125
Map <String , IdentifierGeneratorDefinition > idGeneratorDefinitionMap ,
126
- Map <String , NamedHqlQueryDefinition > namedQueryMap ,
127
- Map <String , NamedNativeQueryDefinition > namedNativeQueryMap ,
126
+ Map <String , NamedHqlQueryDefinition <?> > namedQueryMap ,
127
+ Map <String , NamedNativeQueryDefinition <?> > namedNativeQueryMap ,
128
128
Map <String , NamedProcedureCallDefinition > namedProcedureCallMap ,
129
129
Map <String , NamedResultSetMappingDescriptor > sqlResultSetMappingMap ,
130
130
Map <String , NamedEntityGraphDefinition > namedEntityGraphMap ,
@@ -246,22 +246,22 @@ public Map<String, String> getImports() {
246
246
}
247
247
248
248
@ Override
249
- public NamedHqlQueryDefinition getNamedHqlQueryMapping (String name ) {
249
+ public NamedHqlQueryDefinition <?> getNamedHqlQueryMapping (String name ) {
250
250
return namedQueryMap .get ( name );
251
251
}
252
252
253
253
@ Override
254
- public void visitNamedHqlQueryDefinitions (Consumer <NamedHqlQueryDefinition > definitionConsumer ) {
254
+ public void visitNamedHqlQueryDefinitions (Consumer <NamedHqlQueryDefinition <?> > definitionConsumer ) {
255
255
namedQueryMap .values ().forEach ( definitionConsumer );
256
256
}
257
257
258
258
@ Override
259
- public NamedNativeQueryDefinition getNamedNativeQueryMapping (String name ) {
259
+ public NamedNativeQueryDefinition <?> getNamedNativeQueryMapping (String name ) {
260
260
return namedNativeQueryMap .get ( name );
261
261
}
262
262
263
263
@ Override
264
- public void visitNamedNativeQueryDefinitions (Consumer <NamedNativeQueryDefinition > definitionConsumer ) {
264
+ public void visitNamedNativeQueryDefinitions (Consumer <NamedNativeQueryDefinition <?> > definitionConsumer ) {
265
265
namedNativeQueryMap .values ().forEach ( definitionConsumer );
266
266
}
267
267
@@ -370,16 +370,16 @@ public NamedObjectRepository buildNamedQueryRepository(SessionFactoryImplementor
370
370
);
371
371
}
372
372
373
- private Map <String , NamedSqmQueryMemento > buildNamedSqmMementos (SessionFactoryImplementor sessionFactory ) {
374
- final HashMap <String , NamedSqmQueryMemento > map = new HashMap <>();
373
+ private Map <String , NamedSqmQueryMemento <?> > buildNamedSqmMementos (SessionFactoryImplementor sessionFactory ) {
374
+ final HashMap <String , NamedSqmQueryMemento <?> > map = new HashMap <>();
375
375
if ( namedQueryMap != null ) {
376
376
namedQueryMap .forEach ( (key , value ) -> map .put ( key , value .resolve ( sessionFactory ) ) );
377
377
}
378
378
return map ;
379
379
}
380
380
381
- private Map <String , NamedNativeQueryMemento > buildNamedNativeMementos (SessionFactoryImplementor sessionFactory ) {
382
- final HashMap <String , NamedNativeQueryMemento > map = new HashMap <>();
381
+ private Map <String , NamedNativeQueryMemento <?> > buildNamedNativeMementos (SessionFactoryImplementor sessionFactory ) {
382
+ final HashMap <String , NamedNativeQueryMemento <?> > map = new HashMap <>();
383
383
if ( namedNativeQueryMap != null ) {
384
384
namedNativeQueryMap .forEach ( (key , value ) -> map .put ( key , value .resolve ( sessionFactory ) ) );
385
385
}
@@ -652,11 +652,11 @@ public BootstrapContext getBootstrapContext() {
652
652
return bootstrapContext ;
653
653
}
654
654
655
- public Map <String , NamedHqlQueryDefinition > getNamedQueryMap () {
655
+ public Map <String , NamedHqlQueryDefinition <?> > getNamedQueryMap () {
656
656
return namedQueryMap ;
657
657
}
658
658
659
- public Map <String , NamedNativeQueryDefinition > getNamedNativeQueryMap () {
659
+ public Map <String , NamedNativeQueryDefinition <?> > getNamedNativeQueryMap () {
660
660
return namedNativeQueryMap ;
661
661
}
662
662
0 commit comments