public class OneToManyAssembleOperationHandler extends OneToOneAssembleOperationHandler
An implementation of AssembleOperationHandler
for the one-to-many mapping between the target object and the data source object.
The difference between ManyToManyAssembleOperationHandler and OneToManyAssembleOperationHandler
is that OneToManyAssembleOperationHandler is used to handle the situation where
multiple values can be obtained through a key in the data source container,
while ManyToManyAssembleOperationHandler is used to handle the situation where only
one value can be obtained through a key, but there are multiple keys at the same time.
AbstractAssembleOperationHandler.TargetpropertyOperator| 构造器和说明 |
|---|
OneToManyAssembleOperationHandler(PropertyOperator propertyOperator)
Create an
OneToManyAssembleOperationHandler comparator. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
completeMapping(Object source,
AbstractAssembleOperationHandler.Target target)
Complete attribute mapping between the target object and the data source object.
|
collectToEntities, createTarget, getSourcesFromContainer, getTheAssociatedSourceintrospectForEntities, processpublic OneToManyAssembleOperationHandler(PropertyOperator propertyOperator)
OneToManyAssembleOperationHandler comparator.propertyOperator - property operatorprotected void completeMapping(Object source, AbstractAssembleOperationHandler.Target target)
completeMapping 在类中 OneToOneAssembleOperationHandlersource - sourcetarget - targetCopyright © 2023. All rights reserved.