@Target({METHOD,PARAMETER,TYPE})
@Retention(RUNTIME)
public @interface BatchFetch
FetchStrategy.SELECT
is used on a property, this annotation configures the default batching.
Beware that if multiple properties of an entity view use FetchStrategy.SELECT
,
they will only be loaded together in one batch if the batch sizes match.
The batch fetch annotation can also be applied on the entity view class level which makes it's value the default for all properties.Modifier and Type | Required Element | Description |
---|---|---|
int |
size |
The size of the batch.
|
Copyright © 2014–2018 Blazebit. All rights reserved.