JBoss.org Community Documentation

4.3.3. @Serializable annotation

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.

public class Gadget
   // resource won't be replicated
   private Resource resource;

   // serialized even if SpecialAddress is @Replicable
   private SpecialAddress specialAddress;

   // other state variables