@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface NotPersistent
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
For example, the following field is non-transient (persistent) with respect to Java serialization but is transient with respect to the DPL.
@NotPersistentint myField; }
Copyright (c) 2002, 2016 Oracle and/or its affiliates. All rights reserved.