public static enum Hibernate3Module.Feature extends Enum<Hibernate3Module.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).
|
REPLACE_PERSISTENT_COLLECTIONS
|
REQUIRE_EXPLICIT_LAZY_LOADING_MARKER
This feature determines how
PersistentCollection s 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. |
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 Hibernate3Module.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Hibernate3Module.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hibernate3Module.Feature FORCE_LAZY_LOADING
Default value is false.
public static final Hibernate3Module.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 Hibernate3Module.Feature REQUIRE_EXPLICIT_LAZY_LOADING_MARKER
PersistentCollection
s 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 assumed by default, without requiring marker.
public static final Hibernate3Module.Feature REPLACE_PERSISTENT_COLLECTIONS
org.hibernate.collection.spi.PersistentCollection
,
List
, Set
, Map
subclasses
during serialization as standard JDK List
,
Set
and Map
.
This is usually done to prevent issues with polymorphic handling, so
that type id is generated for standard containers and NOT for Hibernate
variants.
Default setting is false, so that no replacement occurs.
public static Hibernate3Module.Feature[] values()
for (Hibernate3Module.Feature c : Hibernate3Module.Feature.values()) System.out.println(c);
public static Hibernate3Module.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 © 2017 FasterXML. All rights reserved.