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