Berkeley DB Java Edition
version 5.0.34

com.sleepycat.persist.model
Annotation Type NotPersistent


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

Overrides the default rules for field persistence and defines a field as being non-persistent even when it is not 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 non-transient (persistent) with respect to Java serialization but is transient with respect to the DPL.

      @NotPersistent
      int myField;
 }
 

Author:
Mark Hayes
See Also:
NotTransient


Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.