Class JoinColumn


  • public class JoinColumn
    extends Object
    Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface JoinColumn { String name() default ""; String referencedColumnName() default ""; boolean unique() default false; boolean nullable() default true; boolean insertable() default true; boolean updatable() default true; String columnDefinition() default ""; String table() default ""; }

    Java class for join-column complex type.

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

     <complexType name="join-column">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="referenced-column-name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • columnDefinition

        protected String columnDefinition
      • insertable

        protected Boolean insertable
      • nullable

        protected Boolean nullable
      • referencedColumnName

        protected String referencedColumnName
      • table

        protected String table
      • updatable

        protected Boolean updatable
    • Constructor Detail

      • JoinColumn

        public JoinColumn()
    • Method Detail

      • getColumnDefinition

        public String getColumnDefinition()
        Gets the value of the columnDefinition property.
        Returns:
        possible object is String
      • setColumnDefinition

        public void setColumnDefinition​(String value)
        Sets the value of the columnDefinition property.
        Parameters:
        value - allowed object is String
      • isInsertable

        public Boolean isInsertable()
        Gets the value of the insertable property.
        Returns:
        possible object is Boolean
      • setInsertable

        public void setInsertable​(Boolean value)
        Sets the value of the insertable property.
        Parameters:
        value - allowed object is Boolean
      • 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
      • isNullable

        public Boolean isNullable()
        Gets the value of the nullable property.
        Returns:
        possible object is Boolean
      • setNullable

        public void setNullable​(Boolean value)
        Sets the value of the nullable property.
        Parameters:
        value - allowed object is Boolean
      • getReferencedColumnName

        public String getReferencedColumnName()
        Gets the value of the referencedColumnName property.
        Returns:
        possible object is String
      • setReferencedColumnName

        public void setReferencedColumnName​(String value)
        Sets the value of the referencedColumnName property.
        Parameters:
        value - allowed object is String
      • getTable

        public String getTable()
        Gets the value of the table property.
        Returns:
        possible object is String
      • setTable

        public void setTable​(String value)
        Sets the value of the table property.
        Parameters:
        value - allowed object is String
      • isUnique

        public Boolean isUnique()
        Gets the value of the unique property.
        Returns:
        possible object is Boolean
      • setUnique

        public void setUnique​(Boolean value)
        Sets the value of the unique property.
        Parameters:
        value - allowed object is Boolean
      • isUpdatable

        public Boolean isUpdatable()
        Gets the value of the updatable property.
        Returns:
        possible object is Boolean
      • setUpdatable

        public void setUpdatable​(Boolean value)
        Sets the value of the updatable property.
        Parameters:
        value - allowed object is Boolean