Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


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


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

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

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

*


Copyright © 1998, 2012, Oracle. All Rights Reserved.