org.hibernate.internal.jaxb.mapping.orm.JaxbEntity Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.05.28 at 02:02:04 PM PDT
//
package org.hibernate.internal.jaxb.mapping.orm;
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;
/**
*
* Defines the settings and mappings for an entity. Is allowed to be sparsely populated and used in
* conjunction
* with the annotations. Alternatively, the metadata-complete attribute can be used to indicate that no
* annotations
* on the entity class (and its fields or properties) are to be processed. If this is the case then
* the defaulting rules for the entity and its subelements will be recursively applied.
* @Target(TYPE) @Retention(RUNTIME) public @interface Entity { String name() default "";
* }
*
*
* Java class for entity complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="entity">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="table" type="{http://java.sun.com/xml/ns/persistence/orm}table" minOccurs="0"/>
* <element name="secondary-table" type="{http://java.sun.com/xml/ns/persistence/orm}secondary-table" maxOccurs="unbounded" minOccurs="0"/>
* <element name="primary-key-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
* <element name="id-class" type="{http://java.sun.com/xml/ns/persistence/orm}id-class" minOccurs="0"/>
* <element name="inheritance" type="{http://java.sun.com/xml/ns/persistence/orm}inheritance" minOccurs="0"/>
* <element name="discriminator-value" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-value" minOccurs="0"/>
* <element name="discriminator-column" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-column" minOccurs="0"/>
* <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/>
* <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/>
* <element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
* <element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
* <element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
* <element name="exclude-default-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
* <element name="exclude-superclass-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
* <element name="entity-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/>
* <element name="pre-persist" type="{http://java.sun.com/xml/ns/persistence/orm}pre-persist" minOccurs="0"/>
* <element name="post-persist" type="{http://java.sun.com/xml/ns/persistence/orm}post-persist" minOccurs="0"/>
* <element name="pre-remove" type="{http://java.sun.com/xml/ns/persistence/orm}pre-remove" minOccurs="0"/>
* <element name="post-remove" type="{http://java.sun.com/xml/ns/persistence/orm}post-remove" minOccurs="0"/>
* <element name="pre-update" type="{http://java.sun.com/xml/ns/persistence/orm}pre-update" minOccurs="0"/>
* <element name="post-update" type="{http://java.sun.com/xml/ns/persistence/orm}post-update" minOccurs="0"/>
* <element name="post-load" type="{http://java.sun.com/xml/ns/persistence/orm}post-load" minOccurs="0"/>
* <element name="attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
* <element name="association-override" type="{http://java.sun.com/xml/ns/persistence/orm}association-override" maxOccurs="unbounded" minOccurs="0"/>
* <element name="attributes" type="{http://java.sun.com/xml/ns/persistence/orm}attributes" minOccurs="0"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
* <attribute name="cacheable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "entity", propOrder = {
"description",
"table",
"secondaryTable",
"primaryKeyJoinColumn",
"idClass",
"inheritance",
"discriminatorValue",
"discriminatorColumn",
"sequenceGenerator",
"tableGenerator",
"namedQuery",
"namedNativeQuery",
"sqlResultSetMapping",
"excludeDefaultListeners",
"excludeSuperclassListeners",
"entityListeners",
"prePersist",
"postPersist",
"preRemove",
"postRemove",
"preUpdate",
"postUpdate",
"postLoad",
"attributeOverride",
"associationOverride",
"attributes"
})
public class JaxbEntity {
protected String description;
protected JaxbTable table;
@XmlElement(name = "secondary-table")
protected List secondaryTable;
@XmlElement(name = "primary-key-join-column")
protected List primaryKeyJoinColumn;
@XmlElement(name = "id-class")
protected JaxbIdClass idClass;
protected JaxbInheritance inheritance;
@XmlElement(name = "discriminator-value")
protected String discriminatorValue;
@XmlElement(name = "discriminator-column")
protected JaxbDiscriminatorColumn discriminatorColumn;
@XmlElement(name = "sequence-generator")
protected JaxbSequenceGenerator sequenceGenerator;
@XmlElement(name = "table-generator")
protected JaxbTableGenerator tableGenerator;
@XmlElement(name = "named-query")
protected List namedQuery;
@XmlElement(name = "named-native-query")
protected List namedNativeQuery;
@XmlElement(name = "sql-result-set-mapping")
protected List sqlResultSetMapping;
@XmlElement(name = "exclude-default-listeners")
protected JaxbEmptyType excludeDefaultListeners;
@XmlElement(name = "exclude-superclass-listeners")
protected JaxbEmptyType excludeSuperclassListeners;
@XmlElement(name = "entity-listeners")
protected JaxbEntityListeners entityListeners;
@XmlElement(name = "pre-persist")
protected JaxbPrePersist prePersist;
@XmlElement(name = "post-persist")
protected JaxbPostPersist postPersist;
@XmlElement(name = "pre-remove")
protected JaxbPreRemove preRemove;
@XmlElement(name = "post-remove")
protected JaxbPostRemove postRemove;
@XmlElement(name = "pre-update")
protected JaxbPreUpdate preUpdate;
@XmlElement(name = "post-update")
protected JaxbPostUpdate postUpdate;
@XmlElement(name = "post-load")
protected JaxbPostLoad postLoad;
@XmlElement(name = "attribute-override")
protected List attributeOverride;
@XmlElement(name = "association-override")
protected List associationOverride;
protected JaxbAttributes attributes;
@XmlAttribute
protected String name;
@XmlAttribute(name = "class", required = true)
protected String clazz;
@XmlAttribute
protected JaxbAccessType access;
@XmlAttribute
protected Boolean cacheable;
@XmlAttribute(name = "metadata-complete")
protected Boolean metadataComplete;
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the table property.
*
* @return
* possible object is
* {@link JaxbTable }
*
*/
public JaxbTable getTable() {
return table;
}
/**
* Sets the value of the table property.
*
* @param value
* allowed object is
* {@link JaxbTable }
*
*/
public void setTable(JaxbTable value) {
this.table = value;
}
/**
* Gets the value of the secondaryTable 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 secondaryTable property.
*
*
* For example, to add a new item, do as follows:
*
* getSecondaryTable().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbSecondaryTable }
*
*
*/
public List getSecondaryTable() {
if (secondaryTable == null) {
secondaryTable = new ArrayList();
}
return this.secondaryTable;
}
/**
* Gets the value of the primaryKeyJoinColumn 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 primaryKeyJoinColumn property.
*
*
* For example, to add a new item, do as follows:
*
* getPrimaryKeyJoinColumn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbPrimaryKeyJoinColumn }
*
*
*/
public List getPrimaryKeyJoinColumn() {
if (primaryKeyJoinColumn == null) {
primaryKeyJoinColumn = new ArrayList();
}
return this.primaryKeyJoinColumn;
}
/**
* Gets the value of the idClass property.
*
* @return
* possible object is
* {@link JaxbIdClass }
*
*/
public JaxbIdClass getIdClass() {
return idClass;
}
/**
* Sets the value of the idClass property.
*
* @param value
* allowed object is
* {@link JaxbIdClass }
*
*/
public void setIdClass(JaxbIdClass value) {
this.idClass = value;
}
/**
* Gets the value of the inheritance property.
*
* @return
* possible object is
* {@link JaxbInheritance }
*
*/
public JaxbInheritance getInheritance() {
return inheritance;
}
/**
* Sets the value of the inheritance property.
*
* @param value
* allowed object is
* {@link JaxbInheritance }
*
*/
public void setInheritance(JaxbInheritance value) {
this.inheritance = value;
}
/**
* Gets the value of the discriminatorValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDiscriminatorValue() {
return discriminatorValue;
}
/**
* Sets the value of the discriminatorValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDiscriminatorValue(String value) {
this.discriminatorValue = value;
}
/**
* Gets the value of the discriminatorColumn property.
*
* @return
* possible object is
* {@link JaxbDiscriminatorColumn }
*
*/
public JaxbDiscriminatorColumn getDiscriminatorColumn() {
return discriminatorColumn;
}
/**
* Sets the value of the discriminatorColumn property.
*
* @param value
* allowed object is
* {@link JaxbDiscriminatorColumn }
*
*/
public void setDiscriminatorColumn(JaxbDiscriminatorColumn value) {
this.discriminatorColumn = value;
}
/**
* Gets the value of the sequenceGenerator property.
*
* @return
* possible object is
* {@link JaxbSequenceGenerator }
*
*/
public JaxbSequenceGenerator getSequenceGenerator() {
return sequenceGenerator;
}
/**
* Sets the value of the sequenceGenerator property.
*
* @param value
* allowed object is
* {@link JaxbSequenceGenerator }
*
*/
public void setSequenceGenerator(JaxbSequenceGenerator value) {
this.sequenceGenerator = value;
}
/**
* Gets the value of the tableGenerator property.
*
* @return
* possible object is
* {@link JaxbTableGenerator }
*
*/
public JaxbTableGenerator getTableGenerator() {
return tableGenerator;
}
/**
* Sets the value of the tableGenerator property.
*
* @param value
* allowed object is
* {@link JaxbTableGenerator }
*
*/
public void setTableGenerator(JaxbTableGenerator value) {
this.tableGenerator = value;
}
/**
* Gets the value of the namedQuery 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 namedQuery property.
*
*
* For example, to add a new item, do as follows:
*
* getNamedQuery().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbNamedQuery }
*
*
*/
public List getNamedQuery() {
if (namedQuery == null) {
namedQuery = new ArrayList();
}
return this.namedQuery;
}
/**
* Gets the value of the namedNativeQuery 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 namedNativeQuery property.
*
*
* For example, to add a new item, do as follows:
*
* getNamedNativeQuery().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbNamedNativeQuery }
*
*
*/
public List getNamedNativeQuery() {
if (namedNativeQuery == null) {
namedNativeQuery = new ArrayList();
}
return this.namedNativeQuery;
}
/**
* Gets the value of the sqlResultSetMapping 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 sqlResultSetMapping property.
*
*
* For example, to add a new item, do as follows:
*
* getSqlResultSetMapping().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbSqlResultSetMapping }
*
*
*/
public List getSqlResultSetMapping() {
if (sqlResultSetMapping == null) {
sqlResultSetMapping = new ArrayList();
}
return this.sqlResultSetMapping;
}
/**
* Gets the value of the excludeDefaultListeners property.
*
* @return
* possible object is
* {@link JaxbEmptyType }
*
*/
public JaxbEmptyType getExcludeDefaultListeners() {
return excludeDefaultListeners;
}
/**
* Sets the value of the excludeDefaultListeners property.
*
* @param value
* allowed object is
* {@link JaxbEmptyType }
*
*/
public void setExcludeDefaultListeners(JaxbEmptyType value) {
this.excludeDefaultListeners = value;
}
/**
* Gets the value of the excludeSuperclassListeners property.
*
* @return
* possible object is
* {@link JaxbEmptyType }
*
*/
public JaxbEmptyType getExcludeSuperclassListeners() {
return excludeSuperclassListeners;
}
/**
* Sets the value of the excludeSuperclassListeners property.
*
* @param value
* allowed object is
* {@link JaxbEmptyType }
*
*/
public void setExcludeSuperclassListeners(JaxbEmptyType value) {
this.excludeSuperclassListeners = value;
}
/**
* Gets the value of the entityListeners property.
*
* @return
* possible object is
* {@link JaxbEntityListeners }
*
*/
public JaxbEntityListeners getEntityListeners() {
return entityListeners;
}
/**
* Sets the value of the entityListeners property.
*
* @param value
* allowed object is
* {@link JaxbEntityListeners }
*
*/
public void setEntityListeners(JaxbEntityListeners value) {
this.entityListeners = value;
}
/**
* Gets the value of the prePersist property.
*
* @return
* possible object is
* {@link JaxbPrePersist }
*
*/
public JaxbPrePersist getPrePersist() {
return prePersist;
}
/**
* Sets the value of the prePersist property.
*
* @param value
* allowed object is
* {@link JaxbPrePersist }
*
*/
public void setPrePersist(JaxbPrePersist value) {
this.prePersist = value;
}
/**
* Gets the value of the postPersist property.
*
* @return
* possible object is
* {@link JaxbPostPersist }
*
*/
public JaxbPostPersist getPostPersist() {
return postPersist;
}
/**
* Sets the value of the postPersist property.
*
* @param value
* allowed object is
* {@link JaxbPostPersist }
*
*/
public void setPostPersist(JaxbPostPersist value) {
this.postPersist = value;
}
/**
* Gets the value of the preRemove property.
*
* @return
* possible object is
* {@link JaxbPreRemove }
*
*/
public JaxbPreRemove getPreRemove() {
return preRemove;
}
/**
* Sets the value of the preRemove property.
*
* @param value
* allowed object is
* {@link JaxbPreRemove }
*
*/
public void setPreRemove(JaxbPreRemove value) {
this.preRemove = value;
}
/**
* Gets the value of the postRemove property.
*
* @return
* possible object is
* {@link JaxbPostRemove }
*
*/
public JaxbPostRemove getPostRemove() {
return postRemove;
}
/**
* Sets the value of the postRemove property.
*
* @param value
* allowed object is
* {@link JaxbPostRemove }
*
*/
public void setPostRemove(JaxbPostRemove value) {
this.postRemove = value;
}
/**
* Gets the value of the preUpdate property.
*
* @return
* possible object is
* {@link JaxbPreUpdate }
*
*/
public JaxbPreUpdate getPreUpdate() {
return preUpdate;
}
/**
* Sets the value of the preUpdate property.
*
* @param value
* allowed object is
* {@link JaxbPreUpdate }
*
*/
public void setPreUpdate(JaxbPreUpdate value) {
this.preUpdate = value;
}
/**
* Gets the value of the postUpdate property.
*
* @return
* possible object is
* {@link JaxbPostUpdate }
*
*/
public JaxbPostUpdate getPostUpdate() {
return postUpdate;
}
/**
* Sets the value of the postUpdate property.
*
* @param value
* allowed object is
* {@link JaxbPostUpdate }
*
*/
public void setPostUpdate(JaxbPostUpdate value) {
this.postUpdate = value;
}
/**
* Gets the value of the postLoad property.
*
* @return
* possible object is
* {@link JaxbPostLoad }
*
*/
public JaxbPostLoad getPostLoad() {
return postLoad;
}
/**
* Sets the value of the postLoad property.
*
* @param value
* allowed object is
* {@link JaxbPostLoad }
*
*/
public void setPostLoad(JaxbPostLoad value) {
this.postLoad = value;
}
/**
* Gets the value of the attributeOverride 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 attributeOverride property.
*
*
* For example, to add a new item, do as follows:
*
* getAttributeOverride().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbAttributeOverride }
*
*
*/
public List getAttributeOverride() {
if (attributeOverride == null) {
attributeOverride = new ArrayList();
}
return this.attributeOverride;
}
/**
* Gets the value of the associationOverride 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 associationOverride property.
*
*
* For example, to add a new item, do as follows:
*
* getAssociationOverride().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbAssociationOverride }
*
*
*/
public List getAssociationOverride() {
if (associationOverride == null) {
associationOverride = new ArrayList();
}
return this.associationOverride;
}
/**
* Gets the value of the attributes property.
*
* @return
* possible object is
* {@link JaxbAttributes }
*
*/
public JaxbAttributes getAttributes() {
return attributes;
}
/**
* Sets the value of the attributes property.
*
* @param value
* allowed object is
* {@link JaxbAttributes }
*
*/
public void setAttributes(JaxbAttributes value) {
this.attributes = 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 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 access property.
*
* @return
* possible object is
* {@link JaxbAccessType }
*
*/
public JaxbAccessType getAccess() {
return access;
}
/**
* Sets the value of the access property.
*
* @param value
* allowed object is
* {@link JaxbAccessType }
*
*/
public void setAccess(JaxbAccessType value) {
this.access = value;
}
/**
* Gets the value of the cacheable property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCacheable() {
return cacheable;
}
/**
* Sets the value of the cacheable property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCacheable(Boolean value) {
this.cacheable = value;
}
/**
* Gets the value of the metadataComplete property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isMetadataComplete() {
return metadataComplete;
}
/**
* Sets the value of the metadataComplete property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setMetadataComplete(Boolean value) {
this.metadataComplete = value;
}
}