org.hibernate.boot.jaxb.hbm.spi.JaxbHbmManyToAnyCollectionElementType Maven / Gradle / Ivy
Show all versions of hibernate-core Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.12.16 at 08:34:01 AM UTC
//
package org.hibernate.boot.jaxb.hbm.spi;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* A "many to any" defines a polymorphic association to any table
* with the given identifier type. The first listed column is a VARCHAR column
* holding the name of the class (for that row).
*
*
* Java class for ManyToAnyCollectionElementType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ManyToAnyCollectionElementType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="meta-value" type="{http://www.hibernate.org/xsd/orm/hbm}AnyValueMappingType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="2"/>
* </sequence>
* <attribute name="id-type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="meta-type" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ManyToAnyCollectionElementType", namespace = "http://www.hibernate.org/xsd/orm/hbm", propOrder = {
"metaValue",
"column"
})
public class JaxbHbmManyToAnyCollectionElementType
implements Serializable
{
@XmlElement(name = "meta-value", namespace = "http://www.hibernate.org/xsd/orm/hbm")
protected List metaValue;
@XmlElement(namespace = "http://www.hibernate.org/xsd/orm/hbm", required = true)
protected List column;
@XmlAttribute(name = "id-type", required = true)
protected String idType;
@XmlAttribute(name = "meta-type")
protected String metaType;
/**
* Gets the value of the metaValue 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 JAXB object.
* This is why there is not a set
method for the metaValue property.
*
*
* For example, to add a new item, do as follows:
*
* getMetaValue().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmAnyValueMappingType }
*
*
*/
public List getMetaValue() {
if (metaValue == null) {
metaValue = new ArrayList();
}
return this.metaValue;
}
/**
* Gets the value of the column 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 JAXB object.
* This is why there is not a set
method for the column property.
*
*
* For example, to add a new item, do as follows:
*
* getColumn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmColumnType }
*
*
*/
public List getColumn() {
if (column == null) {
column = new ArrayList();
}
return this.column;
}
/**
* Gets the value of the idType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdType() {
return idType;
}
/**
* Sets the value of the idType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdType(String value) {
this.idType = value;
}
/**
* Gets the value of the metaType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMetaType() {
return metaType;
}
/**
* Sets the value of the metaType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMetaType(String value) {
this.metaType = value;
}
}