public enum PropertyTransienceStrategy extends Enum<PropertyTransienceStrategy>
Transient properties will be ignored, whereas non-transient ones will be mapped.
Enum Constant and Description |
---|
OPT_IN
This strategy adopts a conservative, opt-in approach that only considers a property to be
non-transient if it is explicitly annotated with one of the following annotations:
Column
Computed
ClusteringColumn
Frozen
FrozenKey
FrozenValue
PartitionKey
Field
|
OPT_OUT
This strategy adopts a permissive, opt-out approach that will consider a property to be
non-transient by default, unless:
The property is annotated with
@Transient ;
The corresponding field is non-null and is marked with the keyword transient ;
The property name has been explicitly black-listed (see DefaultPropertyMapper.setTransientPropertyNames(Set) ). |
Modifier and Type | Method and Description |
---|---|
static PropertyTransienceStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyTransienceStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyTransienceStrategy OPT_OUT
@Transient
;
transient
;
DefaultPropertyMapper.setTransientPropertyNames(Set)
).
public static final PropertyTransienceStrategy OPT_IN
public static PropertyTransienceStrategy[] values()
for (PropertyTransienceStrategy c : PropertyTransienceStrategy.values()) System.out.println(c);
public static PropertyTransienceStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2018. All rights reserved.