Interface AsCloneStrategy

  • All Known Implementing Classes:
    DefaultAsCloneStrategy

    public interface AsCloneStrategy
    Strategy for cloning.
    • Method Detail

      • clone

        <T extends ItemModel> T clone​(T objectToClone)
        Creates a deep copy of the given model. The resulting object is not persisted yet in order to allow modifications like unique key adjustments etc.
        Parameters:
        objectToClone - - the original model
        Returns:
        the deep copy of the model