Class DiscriminatorColumn


  • public class DiscriminatorColumn
    extends Object
    Target({TYPE}) @Retention(RUNTIME) public @interface DiscriminatorColumn { String name() default "DTYPE"; DiscriminatorType discriminatorType() default STRING; String columnDefinition() default ""; int length() default 31; }

    Java class for discriminator-column complex type.

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

     <complexType name="discriminator-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="discriminator-type" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-type" />
           <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
           <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • DiscriminatorColumn

        public DiscriminatorColumn()
    • 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
      • setDiscriminatorType

        public void setDiscriminatorType​(DiscriminatorType value)
        Sets the value of the discriminatorType property.
        Parameters:
        value - allowed object is DiscriminatorType
      • getLength

        public Integer getLength()
        Gets the value of the length property.
        Returns:
        possible object is Integer
      • setLength

        public void setLength​(Integer value)
        Sets the value of the length property.
        Parameters:
        value - allowed object is Integer
      • 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