Package io.jmix.eclipselink.impl.mapping
Class FetchTypeMappingProcessor
java.lang.Object
io.jmix.eclipselink.impl.mapping.FetchTypeMappingProcessor
- All Implemented Interfaces:
MappingProcessor
@Component("eclipselink_FetchTypeMappingProcessor")
public class FetchTypeMappingProcessor
extends Object
implements MappingProcessor
Updates mapping by setting a correct fetch type - lazy or eager.
Relational mappings: 1:1, 1:m, m:1, m:m are set to lazy. Other types like
AggregateObjectMapping
are set to eager.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(MappingProcessorContext context) Updates mapping according to the processor's aim.
-
Constructor Details
-
FetchTypeMappingProcessor
public FetchTypeMappingProcessor()
-
-
Method Details
-
process
Description copied from interface:MappingProcessor
Updates mapping according to the processor's aim. Can be used to enable lazy fetch, add join expression, etc.- Specified by:
process
in interfaceMappingProcessor
- Parameters:
context
- Context data contains objects that cannot be injected.
-