Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB Java Edition version 3.3.75
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.sleepycat.persist.model
Annotation Type NotTransient

    @Documented
    @Retention(value=RUNTIME)
    @Target(value=FIELD)
    public @interface NotTransient

Overrides the default rules for field persistence and defines a field as being persistent even when it is declared with the `transient` keyword.

By default, the persistent fields of a class are all declared instance fields that are non-transient (are not declared with the `transient` keyword). The default rules may be overridden by specifying the `NotPersistent` or `NotTransient` annotation.

For example, the following field is transient with respect to Java serialization but is persistent with respect to the DPL.

    Author:
      Mark Hayes
    See Also:NotPersistent

          Overview
          Package
        Class
          Use
          Tree
          Deprecated
          Index
          Help

    Berkeley DB Java Edition
     version 3.3.75

     PREV CLASS
     NEXT CLASS

      FRAMES
     NO FRAMES

      SUMMARY: REQUIRED | OPTIONAL

    DETAIL: ELEMENT

    Copyright (c) 2004,2008 Oracle.  All rights reserved.