Class SecondaryTable


  • public class SecondaryTable
    extends Object
    Target({TYPE}) @Retention(RUNTIME) public @interface SecondaryTable { String name(); String catalog() default ""; String schema() default ""; PrimaryKeyJoinColumn[] pkJoinColumns() default {}; UniqueConstraint[] uniqueConstraints() default {}; }

    Java class for secondary-table complex type.

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

     <complexType name="secondary-table">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="primary-key-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
             <element name="unique-constraint" type="{http://java.sun.com/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • SecondaryTable

        public SecondaryTable()
    • Method Detail

      • getPrimaryKeyJoinColumn

        public List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
        Gets the value of the primaryKeyJoinColumn 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 primaryKeyJoinColumn property. For example, to add a new item, do as follows:
            getPrimaryKeyJoinColumn().add(newItem);
         
        Objects of the following type(s) are allowed in the list PrimaryKeyJoinColumn
      • getUniqueConstraint

        public List<UniqueConstraint> getUniqueConstraint()
        Gets the value of the uniqueConstraint 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 uniqueConstraint property. For example, to add a new item, do as follows:
            getUniqueConstraint().add(newItem);
         
        Objects of the following type(s) are allowed in the list UniqueConstraint
      • getCatalog

        public String getCatalog()
        Gets the value of the catalog property.
        Returns:
        possible object is String
      • setCatalog

        public void setCatalog​(String value)
        Sets the value of the catalog property.
        Parameters:
        value - allowed object is String
      • 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
      • getSchema

        public String getSchema()
        Gets the value of the schema property.
        Returns:
        possible object is String
      • setSchema

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