Class JaxbHbmAnyDiscriminator

java.lang.Object
org.hibernate.boot.jaxb.mapping.JaxbHbmAnyDiscriminator
All Implemented Interfaces:
Serializable, DiscriminatedAssociation.Discriminator

public class JaxbHbmAnyDiscriminator extends Object implements Serializable, DiscriminatedAssociation.Discriminator
Describes the discriminator of a discriminated association (any, many-to-any), including the mapping of discriminator values to matching entity name

Java class for hbm-any-discriminator complex type.

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


 <complexType name="hbm-any-discriminator">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" minOccurs="0"/>
         <element name="mapping" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-discriminator-value-mapping" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

    • JaxbHbmAnyDiscriminator

      public JaxbHbmAnyDiscriminator()
  • Method Details

    • getType

      public String getType()
      Gets the value of the type property.
      Returns:
      possible object is String
    • setType

      public void setType(String value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is String
    • getColumn

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

      public void setColumn(JaxbColumn value)
      Sets the value of the column property.
      Parameters:
      value - allowed object is JaxbColumn
    • getValueMappings

      public List<JaxbHbmAnyDiscriminatorValueMapping> getValueMappings()
      Gets the value of the valueMappings 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 Jakarta XML Binding object. This is why there is not a set method for the valueMappings property.

      For example, to add a new item, do as follows:

          getValueMappings().add(newItem);
       

      Objects of the following type(s) are allowed in the list JaxbHbmAnyDiscriminatorValueMapping

      Specified by:
      getValueMappings in interface DiscriminatedAssociation.Discriminator
      Returns:
      The value of the valueMappings property.