19
19
import org .hibernate .search .documentation .testsupport .BackendConfigurations ;
20
20
import org .hibernate .search .documentation .testsupport .DocumentationSetupHelper ;
21
21
import org .hibernate .search .engine .backend .types .Projectable ;
22
- import org .hibernate .search .engine .common .EntityReference ;
23
- import org .hibernate .search .engine .mapper .scope .SearchScopeProvider ;
24
22
import org .hibernate .search .engine .search .common .ValueConvert ;
25
23
import org .hibernate .search .engine .search .predicate .SearchPredicate ;
26
- import org .hibernate .search .engine .search .reference .RootReferenceScope ;
27
24
import org .hibernate .search .engine .search .reference .predicate .MatchPredicateFieldReference ;
28
25
import org .hibernate .search .engine .search .reference .projection .FieldProjectionFieldReference ;
29
26
import org .hibernate .search .mapper .orm .Search ;
27
+ import org .hibernate .search .mapper .orm .scope .HibernateOrmRootReferenceScope ;
30
28
import org .hibernate .search .mapper .orm .scope .SearchScope ;
29
+ import org .hibernate .search .mapper .orm .scope .SearchScopeProvider ;
31
30
import org .hibernate .search .mapper .orm .session .SearchSession ;
32
31
import org .hibernate .search .mapper .pojo .mapping .definition .annotation .FullTextField ;
33
32
import org .hibernate .search .mapper .pojo .mapping .definition .annotation .Indexed ;
@@ -198,7 +197,7 @@ public static class EntityC extends EntityB {
198
197
public static class EntityA_ {
199
198
public static ValueFieldReference1 <EntityA_ , String , String , String > stringA ;
200
199
201
- public static RootReferenceScope <EntityA_ , EntityA > scope ;
200
+ public static HibernateOrmRootReferenceScope <EntityA_ , EntityA > scope ;
202
201
203
202
static {
204
203
stringA = ValueFieldReference1 .of ( "stringA" , EntityA_ .class , String .class , String .class , String .class );
@@ -210,7 +209,7 @@ public static class EntityA_ {
210
209
public static class EntityB_ extends EntityA_ {
211
210
public static ValueFieldReference1 <EntityB_ , String , String , String > stringB ;
212
211
213
- public static RootReferenceScope <EntityB_ , EntityB > scope ;
212
+ public static HibernateOrmRootReferenceScope <EntityB_ , EntityB > scope ;
214
213
215
214
static {
216
215
stringB = ValueFieldReference1 .of ( "stringB" , EntityB_ .class , String .class , String .class , String .class );
@@ -222,7 +221,7 @@ public static class EntityB_ extends EntityA_ {
222
221
public static class EntityC_ extends EntityB_ {
223
222
public static ValueFieldReference1 <EntityC_ , String , String , String > stringC ;
224
223
225
- public static RootReferenceScope <EntityC_ , EntityC > scope ;
224
+ public static HibernateOrmRootReferenceScope <EntityC_ , EntityC > scope ;
226
225
227
226
static {
228
227
stringC = ValueFieldReference1 .of ( "stringC" , EntityC_ .class , String .class , String .class , String .class );
@@ -235,7 +234,7 @@ public static class EntityB_union_EntityC_ {
235
234
public static ValueFieldReference1 <EntityB_union_EntityC_ , String , String , String > stringA ;
236
235
public static ValueFieldReference1 <EntityB_union_EntityC_ , String , String , String > stringB ;
237
236
238
- public static RootReferenceScope <EntityB_union_EntityC_ , EntityB > scope ;
237
+ public static HibernateOrmRootReferenceScope <EntityB_union_EntityC_ , EntityB > scope ;
239
238
240
239
static {
241
240
stringA = ValueFieldReference1 .of ( "stringA" , EntityB_union_EntityC_ .class , String .class , String .class ,
@@ -286,7 +285,7 @@ public static class Entity2C {
286
285
public static class Entity2A_union_Entity2B_ {
287
286
public static ValueFieldReference1 <Entity2A_union_Entity2B_ , String , String , String > stringA ;
288
287
289
- public static RootReferenceScope <Entity2A_union_Entity2B_ , Object > scope ;
288
+ public static HibernateOrmRootReferenceScope <Entity2A_union_Entity2B_ , Object > scope ;
290
289
291
290
static {
292
291
stringA = ValueFieldReference1 .of ( "stringA" , Entity2A_union_Entity2B_ .class , String .class , String .class ,
@@ -298,7 +297,7 @@ public static class Entity2A_union_Entity2B_ {
298
297
public static class Entity2A_ {
299
298
public static ValueFieldReference1 <Entity2A_ , String , String , String > stringA ;
300
299
301
- public static RootReferenceScope <Entity2A_ , Entity2A > scope ;
300
+ public static HibernateOrmRootReferenceScope <Entity2A_ , Entity2A > scope ;
302
301
303
302
static {
304
303
stringA = ValueFieldReference1 .of ( "stringA" , Entity2A_ .class , String .class , String .class , String .class );
@@ -311,7 +310,7 @@ public static class Entity2B_ {
311
310
public static ValueFieldReference1 <Entity2B_ , String , String , String > stringA ;
312
311
public static ValueFieldReference1 <Entity2B_ , String , String , String > stringB ;
313
312
314
- public static RootReferenceScope <Entity2B_ , Entity2B > scope ;
313
+ public static HibernateOrmRootReferenceScope <Entity2B_ , Entity2B > scope ;
315
314
316
315
static {
317
316
stringA = ValueFieldReference1 .of ( "stringA" , Entity2B_ .class , String .class , String .class , String .class );
@@ -325,7 +324,7 @@ public static class Entity2C_ {
325
324
public static ValueFieldReference1 <Entity2C_ , String , String , String > stringA ;
326
325
public static ValueFieldReference1 <Entity2C_ , String , String , String > stringC ;
327
326
328
- public static RootReferenceScope <Entity2C_ , Entity2C > scope ;
327
+ public static HibernateOrmRootReferenceScope <Entity2C_ , Entity2C > scope ;
329
328
330
329
static {
331
330
stringA = ValueFieldReference1 .of ( "stringA" , Entity2C_ .class , String .class , String .class , String .class );
@@ -415,12 +414,13 @@ public Class<P> projectionType() {
415
414
416
415
}
417
416
418
- private static class RootReferenceScopeImpl <SR , E > implements RootReferenceScope <SR , E > {
417
+ private static class RootReferenceScopeImpl <SR , E > implements HibernateOrmRootReferenceScope <SR , E > {
419
418
420
419
private final Class <SR > rootReferenceType ;
421
420
private final Class <? extends E >[] entityClass ;
422
421
423
- static <SR , E > RootReferenceScope <SR , E > of (Class <SR > rootReferenceType , Class <? extends E >... entityClass ) {
422
+ static <SR , E > HibernateOrmRootReferenceScope <SR , E > of (Class <SR > rootReferenceType ,
423
+ Class <? extends E >... entityClass ) {
424
424
return new RootReferenceScopeImpl <>( rootReferenceType , entityClass );
425
425
}
426
426
@@ -435,11 +435,8 @@ public Class<SR> rootReferenceType() {
435
435
}
436
436
437
437
@ Override
438
- public <
439
- ER extends EntityReference ,
440
- S extends org .hibernate .search .engine .mapper .scope .SearchScope <SR , E , ER >,
441
- P extends SearchScopeProvider <ER >> S create (P scopeProvider ) {
442
- return (S ) scopeProvider .scope ( Arrays .asList ( entityClass ) );
438
+ public SearchScope <SR , E > create (SearchScopeProvider scopeProvider ) {
439
+ return scopeProvider .scope ( Arrays .asList ( entityClass ) );
443
440
}
444
441
}
445
442
0 commit comments