Class AttributeConverterMutabilityPlanImpl<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.MutableMutabilityPlan<T>
-
- org.hibernate.type.descriptor.converter.AttributeConverterMutabilityPlanImpl<T>
-
- All Implemented Interfaces:
Serializable
,MutabilityPlan<T>
public class AttributeConverterMutabilityPlanImpl<T> extends MutableMutabilityPlan<T>
The standard aproach for defining a MutabilityPlan for converted (AttributeConverter) values is to always assume that they are immutable to make sure that dirty checking, deep copying and second-level caching all work properly no matter what. That was work done under https://hibernate.atlassian.net/browse/HHH-10111 However a series of approaches to tell Hibernate that the values are immutable were documented as part of https://hibernate.atlassian.net/browse/HHH-10127- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeConverterMutabilityPlanImpl(JpaAttributeConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
deepCopyNotNull(T value)
-
Methods inherited from class org.hibernate.type.descriptor.java.MutableMutabilityPlan
assemble, deepCopy, disassemble, isMutable
-
-
-
-
Constructor Detail
-
AttributeConverterMutabilityPlanImpl
public AttributeConverterMutabilityPlanImpl(JpaAttributeConverter converter)
-
-
Method Detail
-
deepCopyNotNull
protected T deepCopyNotNull(T value)
- Specified by:
deepCopyNotNull
in classMutableMutabilityPlan<T>
-
-