public static enum Hibernate4Module.Feature extends Enum<Hibernate4Module.Feature>
| Enum Constant and Description |
|---|
FORCE_LAZY_LOADING
Whether lazy-loaded object should be forced to be loaded and then serialized
(true); or serialized as nulls (false).
|
REQUIRE_EXPLICIT_LAZY_LOADING_MARKER
This feature determines how
PersistentCollections properties
for which no annotation is found are handled with respect to
lazy-loading: if true, lazy-loading is only assumed if annotation
is used to indicate that; if false, lazy-loading is assumed to be
the default. |
SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS
If FORCE_LAZY_LOADING is false lazy-loaded object should be serialized as map IdentifierName=>IdentifierValue
instead of null (true); or serialized as nulls (false)
|
USE_TRANSIENT_ANNOTATION
Whether
Transient annotation should be checked or not;
if true, will consider @Transient to mean that property is to be ignored;
if false annotation will have no effect. |
| Modifier and Type | Method and Description |
|---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that
are enabled by default.
|
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
getMask() |
static Hibernate4Module.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Hibernate4Module.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hibernate4Module.Feature FORCE_LAZY_LOADING
Default value is false.
public static final Hibernate4Module.Feature USE_TRANSIENT_ANNOTATION
Transient annotation should be checked or not;
if true, will consider @Transient to mean that property is to be ignored;
if false annotation will have no effect.
Default value is true.
public static final Hibernate4Module.Feature SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS
Default value is false.
public static final Hibernate4Module.Feature REQUIRE_EXPLICIT_LAZY_LOADING_MARKER
PersistentCollections properties
for which no annotation is found are handled with respect to
lazy-loading: if true, lazy-loading is only assumed if annotation
is used to indicate that; if false, lazy-loading is assumed to be
the default.
Note that FORCE_LAZY_LOADING has priority over this Feature;
meaning that if it is defined as true, setting of this Feature has no
effect.
Default value is false, meaning that laziness is considered to be the default value.
public static Hibernate4Module.Feature[] values()
for (Hibernate4Module.Feature c : Hibernate4Module.Feature.values()) System.out.println(c);
public static Hibernate4Module.Feature 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 nullpublic static int collectDefaults()
public boolean enabledIn(int flags)
public boolean enabledByDefault()
public int getMask()
Copyright © 2014 FasterXML. All Rights Reserved.