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