javax.persistence.FetchType which defines when it should be fetched
| Modifier and Type | Field and Description |
|---|---|
| private final FetchMode | |
| public static final FetchMode | JOIN
Use an outer join to load the related entities, collections or joins. |
| public static final FetchMode | SELECT
Use a secondary select for each individual entity, collection, or join load. |
| public static final FetchMode | SUBSELECT
Available for collections only. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FetchMode | |
| public static FetchMode | |
| public static FetchMode[] |
| hibernateFetchMode | back to summary |
|---|---|
| private final FetchMode hibernateFetchMode | |
| JOIN | back to summary |
|---|---|
| public static final FetchMode JOIN Use an outer join to load the related entities, collections or joins. | |
| SELECT | back to summary |
|---|---|
| public static final FetchMode SELECT Use a secondary select for each individual entity, collection, or join load. | |
| SUBSELECT | back to summary |
|---|---|
| public static final FetchMode SUBSELECT Available for collections only. When accessing a non-initialized collection, this fetch mode will trigger loading all elements of all collections of the same role for all owners associated with the persistence context using a single secondary select. | |
| FetchMode | back to summary |
|---|---|
| private FetchMode(FetchMode hibernateFetchMode) | |
| getHibernateFetchMode | back to summary |
|---|---|
| public FetchMode getHibernateFetchMode() | |
| valueOf | back to summary |
|---|---|
| public static FetchMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FetchMode[] values() | |