org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping Maven / Gradle / Ivy
//
// 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: 2017.04.14 at 12:21:23 PM CEST
//
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
* <choice maxOccurs="unbounded">
* <element name="identifier-generator" type="{http://www.hibernate.org/xsd/orm/hbm}IdentifierGeneratorDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="typedef" type="{http://www.hibernate.org/xsd/orm/hbm}TypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="filter-def" type="{http://www.hibernate.org/xsd/orm/hbm}FilterDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="import" type="{http://www.hibernate.org/xsd/orm/hbm}ClassRenameType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="class" type="{http://www.hibernate.org/xsd/orm/hbm}RootEntityType"/>
* <element name="subclass" type="{http://www.hibernate.org/xsd/orm/hbm}DiscriminatorSubclassEntityType"/>
* <element name="joined-subclass" type="{http://www.hibernate.org/xsd/orm/hbm}JoinedSubclassEntityType"/>
* <element name="union-subclass" type="{http://www.hibernate.org/xsd/orm/hbm}UnionSubclassEntityType"/>
* <element name="resultset" type="{http://www.hibernate.org/xsd/orm/hbm}ResultSetMappingType" maxOccurs="unbounded" minOccurs="0"/>
* <group ref="{http://www.hibernate.org/xsd/orm/hbm}NamedQueryGroup" maxOccurs="unbounded" minOccurs="0"/>
* <element name="fetch-profile" type="{http://www.hibernate.org/xsd/orm/hbm}FetchProfileType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="database-object" type="{http://www.hibernate.org/xsd/orm/hbm}AuxiliaryDatabaseObjectType" maxOccurs="unbounded" minOccurs="0"/>
* </choice>
* <attribute name="auto-import" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="default-access" type="{http://www.w3.org/2001/XMLSchema}string" default="property" />
* <attribute name="default-cascade" type="{http://www.w3.org/2001/XMLSchema}string" default="none" />
* <attribute name="default-lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="package" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
* <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"identifierGenerator",
"typedef",
"filterDef",
"_import",
"clazz",
"subclass",
"joinedSubclass",
"unionSubclass",
"resultset",
"query",
"sqlQuery",
"fetchProfile",
"databaseObject"
})
@XmlRootElement(name = "hibernate-mapping")
public class JaxbHbmHibernateMapping
extends JaxbHbmToolingHintContainer
implements Serializable
{
@XmlElement(name = "identifier-generator")
protected List identifierGenerator;
protected List typedef;
@XmlElement(name = "filter-def")
protected List filterDef;
@XmlElement(name = "import")
protected List _import;
@XmlElement(name = "class")
protected List clazz;
protected List subclass;
@XmlElement(name = "joined-subclass")
protected List joinedSubclass;
@XmlElement(name = "union-subclass")
protected List unionSubclass;
protected List resultset;
protected List query;
@XmlElement(name = "sql-query")
protected List sqlQuery;
@XmlElement(name = "fetch-profile")
protected List fetchProfile;
@XmlElement(name = "database-object")
protected List databaseObject;
@XmlAttribute(name = "auto-import")
protected Boolean autoImport;
@XmlAttribute(name = "catalog")
protected String catalog;
@XmlAttribute(name = "default-access")
protected String defaultAccess;
@XmlAttribute(name = "default-cascade")
protected String defaultCascade;
@XmlAttribute(name = "default-lazy")
protected Boolean defaultLazy;
@XmlAttribute(name = "package")
protected String _package;
@XmlAttribute(name = "schema")
protected String schema;
/**
* Gets the value of the identifierGenerator 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 identifierGenerator property.
*
*
* For example, to add a new item, do as follows:
*
* getIdentifierGenerator().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmIdentifierGeneratorDefinitionType }
*
*
*/
public List getIdentifierGenerator() {
if (identifierGenerator == null) {
identifierGenerator = new ArrayList();
}
return this.identifierGenerator;
}
/**
* Gets the value of the typedef 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 typedef property.
*
*
* For example, to add a new item, do as follows:
*
* getTypedef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmTypeDefinitionType }
*
*
*/
public List getTypedef() {
if (typedef == null) {
typedef = new ArrayList();
}
return this.typedef;
}
/**
* Gets the value of the filterDef 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 filterDef property.
*
*
* For example, to add a new item, do as follows:
*
* getFilterDef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmFilterDefinitionType }
*
*
*/
public List getFilterDef() {
if (filterDef == null) {
filterDef = new ArrayList();
}
return this.filterDef;
}
/**
* Gets the value of the import 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 import property.
*
*
* For example, to add a new item, do as follows:
*
* getImport().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmClassRenameType }
*
*
*/
public List getImport() {
if (_import == null) {
_import = new ArrayList();
}
return this._import;
}
/**
* Gets the value of the clazz 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 clazz property.
*
*
* For example, to add a new item, do as follows:
*
* getClazz().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmRootEntityType }
*
*
*/
public List getClazz() {
if (clazz == null) {
clazz = new ArrayList();
}
return this.clazz;
}
/**
* Gets the value of the subclass 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 subclass property.
*
*
* For example, to add a new item, do as follows:
*
* getSubclass().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmDiscriminatorSubclassEntityType }
*
*
*/
public List getSubclass() {
if (subclass == null) {
subclass = new ArrayList();
}
return this.subclass;
}
/**
* Gets the value of the joinedSubclass 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 joinedSubclass property.
*
*
* For example, to add a new item, do as follows:
*
* getJoinedSubclass().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmJoinedSubclassEntityType }
*
*
*/
public List getJoinedSubclass() {
if (joinedSubclass == null) {
joinedSubclass = new ArrayList();
}
return this.joinedSubclass;
}
/**
* Gets the value of the unionSubclass 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 unionSubclass property.
*
*
* For example, to add a new item, do as follows:
*
* getUnionSubclass().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmUnionSubclassEntityType }
*
*
*/
public List getUnionSubclass() {
if (unionSubclass == null) {
unionSubclass = new ArrayList();
}
return this.unionSubclass;
}
/**
* Gets the value of the resultset 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 resultset property.
*
*
* For example, to add a new item, do as follows:
*
* getResultset().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmResultSetMappingType }
*
*
*/
public List getResultset() {
if (resultset == null) {
resultset = new ArrayList();
}
return this.resultset;
}
/**
* Gets the value of the query 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 query property.
*
*
* For example, to add a new item, do as follows:
*
* getQuery().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmNamedQueryType }
*
*
*/
public List getQuery() {
if (query == null) {
query = new ArrayList();
}
return this.query;
}
/**
* Gets the value of the sqlQuery 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 sqlQuery property.
*
*
* For example, to add a new item, do as follows:
*
* getSqlQuery().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmNamedNativeQueryType }
*
*
*/
public List getSqlQuery() {
if (sqlQuery == null) {
sqlQuery = new ArrayList();
}
return this.sqlQuery;
}
/**
* Gets the value of the fetchProfile 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 fetchProfile property.
*
*
* For example, to add a new item, do as follows:
*
* getFetchProfile().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmFetchProfileType }
*
*
*/
public List getFetchProfile() {
if (fetchProfile == null) {
fetchProfile = new ArrayList();
}
return this.fetchProfile;
}
/**
* Gets the value of the databaseObject 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 databaseObject property.
*
*
* For example, to add a new item, do as follows:
*
* getDatabaseObject().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHbmAuxiliaryDatabaseObjectType }
*
*
*/
public List getDatabaseObject() {
if (databaseObject == null) {
databaseObject = new ArrayList();
}
return this.databaseObject;
}
/**
* Gets the value of the autoImport property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isAutoImport() {
if (autoImport == null) {
return true;
} else {
return autoImport;
}
}
/**
* Sets the value of the autoImport property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAutoImport(Boolean value) {
this.autoImport = value;
}
/**
* Gets the value of the catalog property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCatalog() {
return catalog;
}
/**
* Sets the value of the catalog property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCatalog(String value) {
this.catalog = value;
}
/**
* Gets the value of the defaultAccess property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultAccess() {
if (defaultAccess == null) {
return "property";
} else {
return defaultAccess;
}
}
/**
* Sets the value of the defaultAccess property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultAccess(String value) {
this.defaultAccess = value;
}
/**
* Gets the value of the defaultCascade property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultCascade() {
if (defaultCascade == null) {
return "none";
} else {
return defaultCascade;
}
}
/**
* Sets the value of the defaultCascade property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultCascade(String value) {
this.defaultCascade = value;
}
/**
* Gets the value of the defaultLazy property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isDefaultLazy() {
if (defaultLazy == null) {
return true;
} else {
return defaultLazy;
}
}
/**
* Sets the value of the defaultLazy property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setDefaultLazy(Boolean value) {
this.defaultLazy = value;
}
/**
* Gets the value of the package property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPackage() {
return _package;
}
/**
* Sets the value of the package property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPackage(String value) {
this._package = value;
}
/**
* Gets the value of the schema property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSchema() {
return schema;
}
/**
* Sets the value of the schema property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchema(String value) {
this.schema = value;
}
}