Class AssociationOverride


  • public class AssociationOverride
    extends Object
    Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface AssociationOverride { String name(); JoinColumn[] joinColumns() default{}; JoinTable joinTable() default @JoinTable; }

    Java class for association-override complex type.

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

     <complexType name="association-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"/>
             <choice>
               <element name="join-column" type="{http://java.sun.com/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/>
               <element name="join-table" type="{http://java.sun.com/xml/ns/persistence/orm}join-table" minOccurs="0"/>
             </choice>
           </sequence>
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • AssociationOverride

        public AssociationOverride()
    • 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
      • getJoinColumn

        public List<JoinColumn> getJoinColumn()
        Gets the value of the joinColumn property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the joinColumn property. For example, to add a new item, do as follows:
            getJoinColumn().add(newItem);
         
        Objects of the following type(s) are allowed in the list JoinColumn
      • getJoinTable

        public JoinTable getJoinTable()
        Gets the value of the joinTable property.
        Returns:
        possible object is JoinTable
      • setJoinTable

        public void setJoinTable​(JoinTable value)
        Sets the value of the joinTable property.
        Parameters:
        value - allowed object is JoinTable
      • getName

        public String getName()
        Gets the value of the name property.
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the name property.
        Parameters:
        value - allowed object is String