org.hibernate.boot.jaxb.hbm.spi.JaxbHbmAnyAssociationType 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.XmlType;
/**
*
* A discriminated association where the discriminator is part of the
* association, not the associated entity (compared to discriminator subclass)
*
*
* Java class for AnyAssociationType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="AnyAssociationType">
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
* <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"/>
* </sequence>
* <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="cascade" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="id-type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="meta-type" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AnyAssociationType", propOrder = {
"metaValue",
"column"
})
public class JaxbHbmAnyAssociationType
extends JaxbHbmToolingHintContainer
implements Serializable, ToolingHintContainer
{
@XmlElement(name = "meta-value")
protected List metaValue;
@XmlElement(required = true)
protected List column;
@XmlAttribute(name = "access")
protected String access;
@XmlAttribute(name = "cascade")
protected String cascade;
@XmlAttribute(name = "id-type", required = true)
protected String idType;
@XmlAttribute(name = "index")
protected String index;
@XmlAttribute(name = "insert")
protected Boolean insert;
@XmlAttribute(name = "lazy")
protected Boolean lazy;
@XmlAttribute(name = "meta-type")
protected String metaType;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "node")
protected String node;
@XmlAttribute(name = "optimistic-lock")
protected Boolean optimisticLock;
@XmlAttribute(name = "update")
protected Boolean update;
/**
* 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 access property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccess() {
return access;
}
/**
* Sets the value of the access property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccess(String value) {
this.access = value;
}
/**
* Gets the value of the cascade property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCascade() {
return cascade;
}
/**
* Sets the value of the cascade property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCascade(String value) {
this.cascade = value;
}
/**
* 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 index property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIndex() {
return index;
}
/**
* Sets the value of the index property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIndex(String value) {
this.index = value;
}
/**
* Gets the value of the insert property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isInsert() {
if (insert == null) {
return true;
} else {
return insert;
}
}
/**
* Sets the value of the insert property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setInsert(Boolean value) {
this.insert = value;
}
/**
* Gets the value of the lazy property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isLazy() {
if (lazy == null) {
return false;
} else {
return lazy;
}
}
/**
* Sets the value of the lazy property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setLazy(Boolean value) {
this.lazy = 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;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = 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;
}
/**
* Gets the value of the optimisticLock property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isOptimisticLock() {
if (optimisticLock == null) {
return true;
} else {
return optimisticLock;
}
}
/**
* Sets the value of the optimisticLock property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setOptimisticLock(Boolean value) {
this.optimisticLock = value;
}
/**
* Gets the value of the update property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isUpdate() {
if (update == null) {
return true;
} else {
return update;
}
}
/**
* Sets the value of the update property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setUpdate(Boolean value) {
this.update = value;
}
}