Package org.hibernate.boot.jaxb.mapping
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 Summary
FieldsModifier and TypeFieldDescriptionprotected JaxbColumnprotected Stringprotected List<JaxbHbmAnyDiscriminatorValueMapping> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the column property.getType()Gets the value of the type property.Gets the value of the valueMappings property.voidsetColumn(JaxbColumn value) Sets the value of the column property.voidSets the value of the type property.
-
Field Details
-
type
-
column
-
valueMappings
-
-
Constructor Details
-
JaxbHbmAnyDiscriminator
public JaxbHbmAnyDiscriminator()
-
-
Method Details
-
getType
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isString
-
getColumn
Gets the value of the column property.- Specified by:
getColumnin interfaceDiscriminatedAssociation.Discriminator- Returns:
- possible object is
JaxbColumn
-
setColumn
Sets the value of the column property.- Parameters:
value- allowed object isJaxbColumn
-
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
setmethod 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:
getValueMappingsin interfaceDiscriminatedAssociation.Discriminator- Returns:
- The value of the valueMappings property.
-