Top Description Methods
org.eclipse.persistence.oxm.annotations

public @Interface XmlWriteOnly

extends Annotation
Annotations
@Target:FIELD, METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Purpose: This annotation indicates that a specific property should be flagged as write-only by EclipseLink. The value for this property will be written out to XML during a marshal, but ignored during unmarshal if flagged as write-only.

Example:
 @XmlRootElement(name="customer")
 public class Customer {
    ...
    @XmlElement
    @XmlWriteOnly
    public String firstName
    ...
 }

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString