Class AttributeOverride

  • All Implemented Interfaces:
    Field, Keyable

    public class AttributeOverride
    extends Object
    implements Field
    Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface AttributeOverride { String name(); Column column(); }

    Java class for attribute-override complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="attribute-override">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column"/>
           </sequence>
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • description

        protected String description
      • column

        protected Column column
    • Constructor Detail

      • AttributeOverride

        public AttributeOverride()
      • AttributeOverride

        public AttributeOverride​(String name)
      • AttributeOverride

        public AttributeOverride​(String name,
                                 String columnName)
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the value of the description property.
        Returns:
        possible object is String
      • setDescription

        public void setDescription​(String value)
        Sets the value of the description property.
        Parameters:
        value - allowed object is String
      • getColumn

        public Column getColumn()
        Gets the value of the column property.
        Specified by:
        getColumn in interface Field
        Returns:
        possible object is Column
      • setColumn

        public void setColumn​(Column value)
        Sets the value of the column property.
        Specified by:
        setColumn in interface Field
        Parameters:
        value - allowed object is Column
      • getName

        public String getName()
        Gets the value of the name property.
        Specified by:
        getName in interface Field
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the name property.
        Specified by:
        setName in interface Field
        Parameters:
        value - allowed object is String
      • getKey

        public Object getKey()
        Description copied from interface: Keyable
        Gets the immutable key for this object.
        Specified by:
        getKey in interface Keyable
        Returns:
        gets the immutable key for this object