org.hibernate.type.descriptor.java.MutableMutabilityPlan Java Examples

The following examples show how to use org.hibernate.type.descriptor.java.MutableMutabilityPlan. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JsonTypeDescriptor.java    From flair-engine with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor() {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}
 
Example #2
Source File: CommaDelimitedStringsJavaTypeDescriptor.java    From google-cloud-spanner-hibernate with GNU Lesser General Public License v2.1 5 votes vote down vote up
public CommaDelimitedStringsJavaTypeDescriptor() {
    super(
        List.class,
        new MutableMutabilityPlan<List>() {
            @Override
            protected List deepCopyNotNull(List value) {
                return new ArrayList( value );
            }
        }
    );
}
 
Example #3
Source File: JsonTypeDescriptor.java    From Groza with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor() {
    super( Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}
 
Example #4
Source File: AbstractArrayTypeDescriptor.java    From teiid-spring-boot with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "serial" })
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #5
Source File: AbstractArrayTypeDescriptor.java    From JuniperBot with GNU General Public License v3.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(
            arrayObjectClass,
            (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
                private static final long serialVersionUID = 5441650086018349126L;

                @Override
                protected T deepCopyNotNull(Object value) {
                    return ArrayUtil.deepCopy(value);
                }
            }
    );
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #6
Source File: JsonTypeDescriptor.java    From JuniperBot with GNU General Public License v3.0 5 votes vote down vote up
public JsonTypeDescriptor() {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        private static final long serialVersionUID = 1606718143878984537L;

        @Override
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}
 
Example #7
Source File: JsonTypeDescriptor.java    From iotplatform with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor() {
    super( Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}
 
Example #8
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #9
Source File: JsonTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor(final ObjectMapperWrapper objectMapperWrapper) {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return objectMapperWrapper.clone(value);
        }
    });
    this.objectMapperWrapper = objectMapperWrapper;
}
 
Example #10
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #11
Source File: JsonTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor(final ObjectMapperWrapper objectMapperWrapper) {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return objectMapperWrapper.clone(value);
        }
    });
    this.objectMapperWrapper = objectMapperWrapper;
}
 
Example #12
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #13
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #14
Source File: JsonTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor(final ObjectMapperWrapper objectMapperWrapper) {
    super(Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return objectMapperWrapper.clone(value);
        }
    });
    this.objectMapperWrapper = objectMapperWrapper;
}
 
Example #15
Source File: AbstractArrayTypeDescriptor.java    From high-performance-java-persistence with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #16
Source File: JsonTypeDescriptor.java    From high-performance-java-persistence with Apache License 2.0 5 votes vote down vote up
public JsonTypeDescriptor() {
    super( Object.class, new MutableMutabilityPlan<Object>() {
        @Override
        protected Object deepCopyNotNull(Object value) {
            return JacksonUtil.clone(value);
        }
    });
}