Class DefaultItemModelCloneStrategy

java.lang.Object
de.hybris.platform.servicelayer.internal.model.impl.DefaultItemModelCloneStrategy
All Implemented Interfaces:
ModelCloningStrategy

public class DefaultItemModelCloneStrategy extends Object implements ModelCloningStrategy
The default model cloning strategy to be used by ModelService.clone(Object).

This implementation creates a deep copy of the given original model by creating a new model instance of the same type, reading all attributes values and stores them into the new instance.

The only exception are part-of attribute values which consists of other models - these are cloned themself and then used a attribute value in the new model instance.

Internally it makes use of the ItemModelCloneCreator.