org.hibernate.boot.jaxb.hbm.spi.JaxbHbmMapKeyCompositeType 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.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.25 at 10:44:24 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;
/**
*
* Describes the key of a java.util.Map where the key is a composite type
*
*
* Java class for MapKeyCompositeType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MapKeyCompositeType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice maxOccurs="unbounded">
* <element name="key-property" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyBasicAttributeType"/>
* <element name="key-many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyManyToOneType"/>
* </choice>
* </sequence>
* <attribute name="class" use="required" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MapKeyCompositeType", propOrder = {
"attributes"
})
public class JaxbHbmMapKeyCompositeType
implements Serializable
{
@XmlElements({
@XmlElement(name = "key-property", type = JaxbHbmCompositeKeyBasicAttributeType.class),
@XmlElement(name = "key-many-to-one", type = JaxbHbmCompositeKeyManyToOneType.class)
})
protected List attributes;
@XmlAttribute(name = "class", required = true)
protected String clazz;
/**
* 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 JaxbHbmCompositeKeyBasicAttributeType }
* {@link JaxbHbmCompositeKeyManyToOneType }
*
*
*/
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;
}
}