Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping

public Class JaxbHbmAnyDiscriminator

extends Object
implements Serializable, Discriminator
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Discriminator, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:hbm-any-discriminator
namespace:http://www.hibernate.org/xsd/orm/mapping
propOrder:type, column, valueMappings
Imports
java.io.Serializable, java.util.ArrayList, .List, jakarta.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlElement, .XmlType, org.hibernate.boot.jaxb.mapping.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>

Field Summary

Modifier and TypeField and Description
protected JaxbColumn
protected String
protected List<JaxbHbmAnyDiscriminatorValueMapping>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JaxbColumn

Returns:

possible object is JaxbColumn
getColumn
()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Discriminator.getColumn.

Gets the value of the column property.
public String

Returns:

possible object is String
getType
()

Gets the value of the type property.

public List<JaxbHbmAnyDiscriminatorValueMapping>

Returns:

The value of the valueMappings property.
getValueMappings
()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Discriminator.getValueMappings.

Gets the value of the valueMappings property.
public void
setColumn(JaxbColumn
allowed object is JaxbColumn
value
)

Sets the value of the column property.

public void
setType(String
allowed object is String
value
)

Sets the value of the type property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
protected JaxbColumn column
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
typeback to summary
protected String type
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
valueMappingsback to summary
protected List<JaxbHbmAnyDiscriminatorValueMapping> valueMappings
Annotations
@XmlElement
name:mapping
namespace:http://www.hibernate.org/xsd/orm/mapping
required:true

Constructor Detail

JaxbHbmAnyDiscriminatorback to summary
public JaxbHbmAnyDiscriminator()

Method Detail

getColumnback to summary
public JaxbColumn getColumn()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Discriminator.getColumn.

Gets the value of the column property.

Returns:JaxbColumn

possible object is JaxbColumn

getTypeback to summary
public String getType()

Gets the value of the type property.

Returns:String

possible object is String

getValueMappingsback to summary
public List<JaxbHbmAnyDiscriminatorValueMapping> getValueMappings()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Discriminator.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

Returns:List<JaxbHbmAnyDiscriminatorValueMapping>

The value of the valueMappings property.

setColumnback to summary
public void setColumn(JaxbColumn value)

Sets the value of the column property.

Parameters
value:JaxbColumn

allowed object is JaxbColumn

setTypeback to summary
public void setType(String value)

Sets the value of the type property.

Parameters
value:String

allowed object is String