EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.oxm.annotations
Annotation Type XmlWriteOnly


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface XmlWriteOnly

Purpose: This annotation indicates that a specific property should be flagged as read-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
    ...
 }

*


EclipseLink 2.2.0, build 'v20110202-r8913' API Reference