JBoss.org Community Documentation
The
@org.jboss.cache.annotation.Serializable
annotation indicates a field should be treated as a serialized
attribute. This, of course, requires that the type of the field
implement
Serializable
. If the marked field type has an @Replicable annotation, it
will be ignored.
@Replicable
public class Gadget
{
// resource won't be replicated
@Transient
private Resource resource;
// serialized even if SpecialAddress is @Replicable
@Serializable
private SpecialAddress specialAddress;
// other state variables
}