org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeCollectionElementType 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: 2019.03.21 at 04:13:28 PM CET
//
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.XmlElements;
import javax.xml.bind.annotation.XmlType;
/**
*
* A composite element allows a collection to hold instances of an arbitrary
* class, without the requirement of joining to an entity table. Composite elements
* have component semantics - no shared references and ad hoc null value semantics.
* Composite elements may not hold nested collections.
*
*
* Java class for CompositeCollectionElementType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CompositeCollectionElementType">
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
* <sequence>
* <element name="parent" type="{http://www.hibernate.org/xsd/orm/hbm}parent-type" minOccurs="0"/>
* <element name="tuplizer" type="{http://www.hibernate.org/xsd/orm/hbm}tuplizer-type" maxOccurs="unbounded" minOccurs="0"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="property" type="{http://www.hibernate.org/xsd/orm/hbm}BasicAttributeType"/>
* <element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}ManyToOneType"/>
* <element name="any" type="{http://www.hibernate.org/xsd/orm/hbm}AnyAssociationType"/>
* <element name="nested-composite-element" type="{http://www.hibernate.org/xsd/orm/hbm}nested-composite-element-type"/>
* </choice>
* </sequence>
* <attribute name="class" use="required" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
* <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CompositeCollectionElementType", propOrder = {
"parent",
"tuplizer",
"attributes"
})
public class JaxbHbmCompositeCollectionElementType
extends JaxbHbmToolingHintContainer
implements Serializable
{
protected JaxbHbmParentType parent;
protected List tuplizer;
@XmlElements({
@XmlElement(name = "property", type = JaxbHbmBasicAttributeType.class),
@XmlElement(name = "many-to-one", type = JaxbHbmManyToOneType.class),
@XmlElement(name = "any", type = JaxbHbmAnyAssociationType.class),
@XmlElement(name = "nested-composite-element", type = JaxbHbmNestedCompositeElementType.class)
})
protected List attributes;
@XmlAttribute(name = "class", required = true)
protected String clazz;
@XmlAttribute(name = "node")
protected String node;
/**
* Gets the value of the parent property.
*
* @return
* possible object is
* {@link JaxbHbmParentType }
*
*/
public JaxbHbmParentType getParent() {
return parent;
}
/**
* Sets the value of the parent property.
*
* @param value
* allowed object is
* {@link JaxbHbmParentType }
*
*/
public void setParent(JaxbHbmParentType value) {
this.parent = value;
}
/**
* Gets the value of the tuplizer 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 tuplizer property.
*
*
* For example, to add a new item, do as follows:
*
* getTuplizer().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmTuplizerType }
*
*
*/
public List getTuplizer() {
if (tuplizer == null) {
tuplizer = new ArrayList();
}
return this.tuplizer;
}
/**
* Gets the value of the attributes 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 attributes property.
*
*
* For example, to add a new item, do as follows:
*
* getAttributes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmBasicAttributeType }
* {@link JaxbHbmManyToOneType }
* {@link JaxbHbmAnyAssociationType }
* {@link JaxbHbmNestedCompositeElementType }
*
*
*/
public List getAttributes() {
if (attributes == null) {
attributes = new ArrayList();
}
return this.attributes;
}
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClazz() {
return clazz;
}
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClazz(String value) {
this.clazz = value;
}
/**
* Gets the value of the node property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNode() {
return node;
}
/**
* Sets the value of the node property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNode(String value) {
this.node = value;
}
}