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

org.hibernate.boot.jaxb.mapping.spi.JaxbEntityMappings 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.08.30 at 02:56:23 PM UTC 
//


package org.hibernate.boot.jaxb.mapping.spi;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import jakarta.persistence.AccessType;
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.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 
 * 
 *                     The entity-mappings element is the root element of a mapping
 *                     file. It contains the following four types of elements:
 * 
 *                     1. The persistence-unit-metadata element contains metadata
 *                     for the entire persistence unit. It is undefined if this element
 *                     occurs in multiple mapping files within the same persistence unit.
 * 
 *                     2. The package, schema, catalog and access elements apply to all of
 *                     the entity, mapped-superclass and embeddable elements defined in
 *                     the same file in which they occur.
 * 
 *                     3. The sequence-generator, table-generator, converter, named-query,
 *                     named-native-query, named-stored-procedure-query, and
 *                     sql-result-set-mapping elements are global to the persistence
 *                     unit. It is undefined to have more than one sequence-generator
 *                     or table-generator of the same name in the same or different
 *                     mapping files in a persistence unit. It is undefined to have
 *                     more than one named-query, named-native-query, sql-result-set-mapping,
 *                     or named-stored-procedure-query of the same name in the same
 *                     or different mapping files in a persistence unit.  It is also
 *                     undefined to have more than one converter for the same target
 *                     type in the same or different mapping files in a persistence unit.
 * 
 *                     4. The entity, mapped-superclass and embeddable elements each define
 *                     the mapping information for a managed persistent class. The mapping
 *                     information contained in these elements may be complete or it may
 *                     be partial.
 * 
 *                 
 * 
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <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="persistence-unit-metadata" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
 *         <element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" minOccurs="0"/>
 *         <element name="sequence-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="table-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" 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="mapped-superclass" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="entity" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="embeddable" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="converter" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}converter" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="version" use="required" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}versionType" fixed="2.2" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "description", "persistenceUnitMetadata", "_package", "schema", "catalog", "access", "sequenceGenerator", "tableGenerator", "namedQuery", "namedNativeQuery", "namedStoredProcedureQuery", "sqlResultSetMapping", "mappedSuperclass", "entity", "embeddable", "converter" }) @XmlRootElement(name = "entity-mappings", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") public class JaxbEntityMappings implements Serializable { @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected String description; @XmlElement(name = "persistence-unit-metadata", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected JaxbPersistenceUnitMetadata persistenceUnitMetadata; @XmlElement(name = "package", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected String _package; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected String schema; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected String catalog; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm", type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "token") protected AccessType access; @XmlElement(name = "sequence-generator", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List sequenceGenerator; @XmlElement(name = "table-generator", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List tableGenerator; @XmlElement(name = "named-query", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List namedQuery; @XmlElement(name = "named-native-query", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List namedNativeQuery; @XmlElement(name = "named-stored-procedure-query", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List namedStoredProcedureQuery; @XmlElement(name = "sql-result-set-mapping", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List sqlResultSetMapping; @XmlElement(name = "mapped-superclass", namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List mappedSuperclass; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List entity; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List embeddable; @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence/orm") protected List converter; @XmlAttribute(name = "version", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String version; /** * 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 persistenceUnitMetadata property. * * @return * possible object is * {@link JaxbPersistenceUnitMetadata } * */ public JaxbPersistenceUnitMetadata getPersistenceUnitMetadata() { return persistenceUnitMetadata; } /** * Sets the value of the persistenceUnitMetadata property. * * @param value * allowed object is * {@link JaxbPersistenceUnitMetadata } * */ public void setPersistenceUnitMetadata(JaxbPersistenceUnitMetadata value) { this.persistenceUnitMetadata = 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; } /** * 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 access property. * * @return * possible object is * {@link String } * */ public AccessType getAccess() { return access; } /** * Sets the value of the access property. * * @param value * allowed object is * {@link String } * */ public void setAccess(AccessType value) { this.access = value; } /** * Gets the value of the sequenceGenerator 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 sequenceGenerator property. * *

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

     *    getSequenceGenerator().add(newItem);
     * 
* * *

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

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

     *    getTableGenerator().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbTableGenerator } * * */ public List getTableGenerator() { if (tableGenerator == null) { tableGenerator = new ArrayList(); } return this.tableGenerator; } /** * 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 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 JaxbNamedStoredProcedureQuery } * * */ 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 JaxbSqlResultSetMapping } * * */ public List getSqlResultSetMapping() { if (sqlResultSetMapping == null) { sqlResultSetMapping = new ArrayList(); } return this.sqlResultSetMapping; } /** * Gets the value of the mappedSuperclass 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 mappedSuperclass property. * *

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

     *    getMappedSuperclass().add(newItem);
     * 
* * *

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

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

     *    getEntity().add(newItem);
     * 
* * *

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

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

     *    getEmbeddable().add(newItem);
     * 
* * *

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

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

     *    getConverter().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbConverter } * * */ public List getConverter() { if (converter == null) { converter = new ArrayList(); } return this.converter; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { if (version == null) { return "2.2"; } else { return version; } } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy