JBoss.org Community Documentation

- Prev
- Next

### 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. ``

    @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
    }

- Prev4.3.2. @Transient annotation
- Top of page
- Front page
- NextChapter 5. Configuration and Deployment