Example usage for org.hibernate.type.descriptor.java MutableMutabilityPlan MutableMutabilityPlan

List of usage examples for org.hibernate.type.descriptor.java MutableMutabilityPlan MutableMutabilityPlan

Introduction

In this page you can find the example usage for org.hibernate.type.descriptor.java MutableMutabilityPlan MutableMutabilityPlan.

Prototype

MutableMutabilityPlan

Source Link

Usage

From source file:org.teiid.hibernate.types.AbstractArrayTypeDescriptor.java

License:Apache License

@SuppressWarnings({ "unchecked", "serial" })
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override/*from   www  . ja  v  a2s  . c om*/
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}

From source file:org.thingsboard.server.dao.util.mapping.JsonTypeDescriptor.java

License:Apache License

public JsonTypeDescriptor() {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        @Override/*from   w ww  .  j a v a 2 s .  c  o m*/
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}

From source file:ru.caramel.juniperbot.core.common.persistence.types.AbstractArrayTypeDescriptor.java

License:Open Source License

@SuppressWarnings("unchecked")
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        private static final long serialVersionUID = 5441650086018349126L;

        @Override//www.  jav  a2 s.  c om
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}

From source file:ru.caramel.juniperbot.core.common.persistence.types.json.JsonTypeDescriptor.java

License:Open Source License

public JsonTypeDescriptor() {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        private static final long serialVersionUID = 1606718143878984537L;

        @Override//  w  w w  .j  a  v a2s .  c o  m
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}