All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.jpamodelgen.xml.jaxb.Entity Maven / Gradle / Ivy

There is a newer version: 5.6.15.Final
Show newest version
//
// 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: 2022.07.07 at 08:24:00 AM UTC 
//


package org.hibernate.jpamodelgen.xml.jaxb;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.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://xmlns.jcp.org/xml/ns/persistence/orm}table" minOccurs="0"/>
 *         <element name="secondary-table" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}secondary-table" maxOccurs="unbounded" minOccurs="0"/>
 *         <sequence>
 *           <element name="primary-key-join-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
 *           <element name="primary-key-foreign-key" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}foreign-key" minOccurs="0"/>
 *         </sequence>
 *         <element name="id-class" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}id-class" minOccurs="0"/>
 *         <element name="inheritance" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}inheritance" minOccurs="0"/>
 *         <element name="discriminator-value" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}discriminator-value" minOccurs="0"/>
 *         <element name="discriminator-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}discriminator-column" minOccurs="0"/>
 *         <element name="sequence-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/>
 *         <element name="table-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table-generator" minOccurs="0"/>
 *         <element name="named-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="named-native-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="named-stored-procedure-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-stored-procedure-query" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="sql-result-set-mapping" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="exclude-default-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
 *         <element name="exclude-superclass-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
 *         <element name="entity-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/>
 *         <element name="pre-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-persist" minOccurs="0"/>
 *         <element name="post-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-persist" minOccurs="0"/>
 *         <element name="pre-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-remove" minOccurs="0"/>
 *         <element name="post-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-remove" minOccurs="0"/>
 *         <element name="pre-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-update" minOccurs="0"/>
 *         <element name="post-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-update" minOccurs="0"/>
 *         <element name="post-load" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-load" minOccurs="0"/>
 *         <element name="attribute-override" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="association-override" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}association-override" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="convert" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}convert" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="named-entity-graph" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-entity-graph" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="attributes" type="{http://xmlns.jcp.org/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://xmlns.jcp.org/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", "primaryKeyForeignKey", "idClass", "inheritance", "discriminatorValue", "discriminatorColumn", "sequenceGenerator", "tableGenerator", "namedQuery", "namedNativeQuery", "namedStoredProcedureQuery", "sqlResultSetMapping", "excludeDefaultListeners", "excludeSuperclassListeners", "entityListeners", "prePersist", "postPersist", "preRemove", "postRemove", "preUpdate", "postUpdate", "postLoad", "attributeOverride", "associationOverride", "convert", "namedEntityGraph", "attributes" }) public class Entity { protected String description; protected Table table; @XmlElement(name = "secondary-table") protected List secondaryTable; @XmlElement(name = "primary-key-join-column") protected List primaryKeyJoinColumn; @XmlElement(name = "primary-key-foreign-key") protected ForeignKey primaryKeyForeignKey; @XmlElement(name = "id-class") protected IdClass idClass; protected Inheritance inheritance; @XmlElement(name = "discriminator-value") protected String discriminatorValue; @XmlElement(name = "discriminator-column") protected DiscriminatorColumn discriminatorColumn; @XmlElement(name = "sequence-generator") protected SequenceGenerator sequenceGenerator; @XmlElement(name = "table-generator") protected TableGenerator tableGenerator; @XmlElement(name = "named-query") protected List namedQuery; @XmlElement(name = "named-native-query") protected List namedNativeQuery; @XmlElement(name = "named-stored-procedure-query") protected List namedStoredProcedureQuery; @XmlElement(name = "sql-result-set-mapping") protected List sqlResultSetMapping; @XmlElement(name = "exclude-default-listeners") protected EmptyType excludeDefaultListeners; @XmlElement(name = "exclude-superclass-listeners") protected EmptyType excludeSuperclassListeners; @XmlElement(name = "entity-listeners") protected EntityListeners entityListeners; @XmlElement(name = "pre-persist") protected PrePersist prePersist; @XmlElement(name = "post-persist") protected PostPersist postPersist; @XmlElement(name = "pre-remove") protected PreRemove preRemove; @XmlElement(name = "post-remove") protected PostRemove postRemove; @XmlElement(name = "pre-update") protected PreUpdate preUpdate; @XmlElement(name = "post-update") protected PostUpdate postUpdate; @XmlElement(name = "post-load") protected PostLoad postLoad; @XmlElement(name = "attribute-override") protected List attributeOverride; @XmlElement(name = "association-override") protected List associationOverride; protected List convert; @XmlElement(name = "named-entity-graph") protected List namedEntityGraph; protected Attributes attributes; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "class", required = true) protected String clazz; @XmlAttribute(name = "access") protected AccessType access; @XmlAttribute(name = "cacheable") 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 Table } * */ public Table getTable() { return table; } /** * Sets the value of the table property. * * @param value * allowed object is * {@link Table } * */ public void setTable(Table 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 SecondaryTable } * * */ 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 PrimaryKeyJoinColumn } * * */ public List getPrimaryKeyJoinColumn() { if (primaryKeyJoinColumn == null) { primaryKeyJoinColumn = new ArrayList(); } return this.primaryKeyJoinColumn; } /** * Gets the value of the primaryKeyForeignKey property. * * @return * possible object is * {@link ForeignKey } * */ public ForeignKey getPrimaryKeyForeignKey() { return primaryKeyForeignKey; } /** * Sets the value of the primaryKeyForeignKey property. * * @param value * allowed object is * {@link ForeignKey } * */ public void setPrimaryKeyForeignKey(ForeignKey value) { this.primaryKeyForeignKey = value; } /** * Gets the value of the idClass property. * * @return * possible object is * {@link IdClass } * */ public IdClass getIdClass() { return idClass; } /** * Sets the value of the idClass property. * * @param value * allowed object is * {@link IdClass } * */ public void setIdClass(IdClass value) { this.idClass = value; } /** * Gets the value of the inheritance property. * * @return * possible object is * {@link Inheritance } * */ public Inheritance getInheritance() { return inheritance; } /** * Sets the value of the inheritance property. * * @param value * allowed object is * {@link Inheritance } * */ public void setInheritance(Inheritance 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 DiscriminatorColumn } * */ public DiscriminatorColumn getDiscriminatorColumn() { return discriminatorColumn; } /** * Sets the value of the discriminatorColumn property. * * @param value * allowed object is * {@link DiscriminatorColumn } * */ public void setDiscriminatorColumn(DiscriminatorColumn value) { this.discriminatorColumn = value; } /** * Gets the value of the sequenceGenerator property. * * @return * possible object is * {@link SequenceGenerator } * */ public SequenceGenerator getSequenceGenerator() { return sequenceGenerator; } /** * Sets the value of the sequenceGenerator property. * * @param value * allowed object is * {@link SequenceGenerator } * */ public void setSequenceGenerator(SequenceGenerator value) { this.sequenceGenerator = value; } /** * Gets the value of the tableGenerator property. * * @return * possible object is * {@link TableGenerator } * */ public TableGenerator getTableGenerator() { return tableGenerator; } /** * Sets the value of the tableGenerator property. * * @param value * allowed object is * {@link TableGenerator } * */ public void setTableGenerator(TableGenerator 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 NamedQuery } * * */ 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 NamedNativeQuery } * * */ public List getNamedNativeQuery() { if (namedNativeQuery == null) { namedNativeQuery = new ArrayList(); } return this.namedNativeQuery; } /** * Gets the value of the namedStoredProcedureQuery 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 namedStoredProcedureQuery property. * *

* For example, to add a new item, do as follows: *

     *    getNamedStoredProcedureQuery().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NamedStoredProcedureQuery } * * */ public List getNamedStoredProcedureQuery() { if (namedStoredProcedureQuery == null) { namedStoredProcedureQuery = new ArrayList(); } return this.namedStoredProcedureQuery; } /** * 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 SqlResultSetMapping } * * */ public List getSqlResultSetMapping() { if (sqlResultSetMapping == null) { sqlResultSetMapping = new ArrayList(); } return this.sqlResultSetMapping; } /** * Gets the value of the excludeDefaultListeners property. * * @return * possible object is * {@link EmptyType } * */ public EmptyType getExcludeDefaultListeners() { return excludeDefaultListeners; } /** * Sets the value of the excludeDefaultListeners property. * * @param value * allowed object is * {@link EmptyType } * */ public void setExcludeDefaultListeners(EmptyType value) { this.excludeDefaultListeners = value; } /** * Gets the value of the excludeSuperclassListeners property. * * @return * possible object is * {@link EmptyType } * */ public EmptyType getExcludeSuperclassListeners() { return excludeSuperclassListeners; } /** * Sets the value of the excludeSuperclassListeners property. * * @param value * allowed object is * {@link EmptyType } * */ public void setExcludeSuperclassListeners(EmptyType value) { this.excludeSuperclassListeners = value; } /** * Gets the value of the entityListeners property. * * @return * possible object is * {@link EntityListeners } * */ public EntityListeners getEntityListeners() { return entityListeners; } /** * Sets the value of the entityListeners property. * * @param value * allowed object is * {@link EntityListeners } * */ public void setEntityListeners(EntityListeners value) { this.entityListeners = value; } /** * Gets the value of the prePersist property. * * @return * possible object is * {@link PrePersist } * */ public PrePersist getPrePersist() { return prePersist; } /** * Sets the value of the prePersist property. * * @param value * allowed object is * {@link PrePersist } * */ public void setPrePersist(PrePersist value) { this.prePersist = value; } /** * Gets the value of the postPersist property. * * @return * possible object is * {@link PostPersist } * */ public PostPersist getPostPersist() { return postPersist; } /** * Sets the value of the postPersist property. * * @param value * allowed object is * {@link PostPersist } * */ public void setPostPersist(PostPersist value) { this.postPersist = value; } /** * Gets the value of the preRemove property. * * @return * possible object is * {@link PreRemove } * */ public PreRemove getPreRemove() { return preRemove; } /** * Sets the value of the preRemove property. * * @param value * allowed object is * {@link PreRemove } * */ public void setPreRemove(PreRemove value) { this.preRemove = value; } /** * Gets the value of the postRemove property. * * @return * possible object is * {@link PostRemove } * */ public PostRemove getPostRemove() { return postRemove; } /** * Sets the value of the postRemove property. * * @param value * allowed object is * {@link PostRemove } * */ public void setPostRemove(PostRemove value) { this.postRemove = value; } /** * Gets the value of the preUpdate property. * * @return * possible object is * {@link PreUpdate } * */ public PreUpdate getPreUpdate() { return preUpdate; } /** * Sets the value of the preUpdate property. * * @param value * allowed object is * {@link PreUpdate } * */ public void setPreUpdate(PreUpdate value) { this.preUpdate = value; } /** * Gets the value of the postUpdate property. * * @return * possible object is * {@link PostUpdate } * */ public PostUpdate getPostUpdate() { return postUpdate; } /** * Sets the value of the postUpdate property. * * @param value * allowed object is * {@link PostUpdate } * */ public void setPostUpdate(PostUpdate value) { this.postUpdate = value; } /** * Gets the value of the postLoad property. * * @return * possible object is * {@link PostLoad } * */ public PostLoad getPostLoad() { return postLoad; } /** * Sets the value of the postLoad property. * * @param value * allowed object is * {@link PostLoad } * */ public void setPostLoad(PostLoad 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 AttributeOverride } * * */ 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 AssociationOverride } * * */ public List getAssociationOverride() { if (associationOverride == null) { associationOverride = new ArrayList(); } return this.associationOverride; } /** * Gets the value of the convert 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 convert property. * *

* For example, to add a new item, do as follows: *

     *    getConvert().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Convert } * * */ public List getConvert() { if (convert == null) { convert = new ArrayList(); } return this.convert; } /** * Gets the value of the namedEntityGraph 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 namedEntityGraph property. * *

* For example, to add a new item, do as follows: *

     *    getNamedEntityGraph().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NamedEntityGraph } * * */ public List getNamedEntityGraph() { if (namedEntityGraph == null) { namedEntityGraph = new ArrayList(); } return this.namedEntityGraph; } /** * Gets the value of the attributes property. * * @return * possible object is * {@link Attributes } * */ public Attributes getAttributes() { return attributes; } /** * Sets the value of the attributes property. * * @param value * allowed object is * {@link Attributes } * */ public void setAttributes(Attributes 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 AccessType } * */ public AccessType getAccess() { return access; } /** * Sets the value of the access property. * * @param value * allowed object is * {@link AccessType } * */ public void setAccess(AccessType 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy