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 nameJava 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JaxbColumn
column
protected String
type
protected List<JaxbHbmAnyDiscriminatorValueMapping>
valueMappings
-
Constructor Summary
Constructors Constructor Description JaxbHbmAnyDiscriminator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxbColumn
getColumn()
Gets the value of the column property.String
getType()
Gets the value of the type property.List<JaxbHbmAnyDiscriminatorValueMapping>
getValueMappings()
Gets the value of the valueMappings property.void
setColumn(JaxbColumn value)
Sets the value of the column property.void
setType(String value)
Sets the value of the type property.
-
-
-
Field Detail
-
type
protected String type
-
column
protected JaxbColumn column
-
valueMappings
protected List<JaxbHbmAnyDiscriminatorValueMapping> valueMappings
-
-
Method Detail
-
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 isString
-
getColumn
public JaxbColumn getColumn()
Gets the value of the column property.- Specified by:
getColumn
in interfaceDiscriminatedAssociation.Discriminator
- Returns:
- possible object is
JaxbColumn
-
setColumn
public void setColumn(JaxbColumn value)
Sets the value of the column property.- Parameters:
value
- allowed object isJaxbColumn
-
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 interfaceDiscriminatedAssociation.Discriminator
- Returns:
- The value of the valueMappings property.
-
-