|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Serialized
When placed on an entity field, the field will be written as a single Blob property using java serialization.
transient
(the java keyword, not the annotation) fields will not be stored.
@Transient
fields *will* be stored!@Serialized
collections can be nested inside @Embedded
collections.You are strongly advised to place serialVersionUID
on all classes
that you intend to store as @Serialized
. Without this, any change to your
classes will prevent stored objects from being deserialized on fetch.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |