@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.3.2, "build v20111125-r10461" API Reference