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).
|
SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS
If FORCE_LAZY_LOADING is false lazy-loaded object should be serialized as map IdentifierName=>IdentifierValue
istead of null (true); or serialized as nulls (false)
|
USE_TRANSIENT_ANNOTATION
Whether
Transient annotation should be checked or not; if true, will consider |
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() |
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 considerpublic static final Hibernate4Module.Feature SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS
Defaul value is false
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 enabledByDefault()
public int getMask()
Copyright © 2012-2013 FasterXML. All Rights Reserved.