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

org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSecondaryTableType Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
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: 2021.12.16 at 08:34:01 AM UTC 
//


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.XmlElements;
import javax.xml.bind.annotation.XmlType;


/**
 * 
 *                 A join allows some properties of a class to be persisted to a second table
 *             
 * 
 * 

Java class for SecondaryTableType complex type. * *

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

 * <complexType name="SecondaryTableType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="subselect" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="key" type="{http://www.hibernate.org/xsd/orm/hbm}key-type"/>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element name="property" type="{http://www.hibernate.org/xsd/orm/hbm}BasicAttributeType"/>
 *           <element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}ManyToOneType"/>
 *           <element name="component" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeAttributeType"/>
 *           <element name="dynamic-component" type="{http://www.hibernate.org/xsd/orm/hbm}dynamic-component-type"/>
 *           <element name="any" type="{http://www.hibernate.org/xsd/orm/hbm}AnyAssociationType"/>
 *         </choice>
 *         <group ref="{http://www.hibernate.org/xsd/orm/hbm}CustomSqlDmlGroup"/>
 *       </sequence>
 *       <attGroup ref="{http://www.hibernate.org/xsd/orm/hbm}table-information-group"/>
 *       <attribute name="fetch" type="{http://www.hibernate.org/xsd/orm/hbm}FetchStyleEnum" default="join" />
 *       <attribute name="inverse" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SecondaryTableType", namespace = "http://www.hibernate.org/xsd/orm/hbm", propOrder = { "subselect", "comment", "key", "attributes", "sqlInsert", "sqlUpdate", "sqlDelete" }) public class JaxbHbmSecondaryTableType implements Serializable, TableInformationContainer { @XmlElement(namespace = "http://www.hibernate.org/xsd/orm/hbm") protected String subselect; @XmlElement(namespace = "http://www.hibernate.org/xsd/orm/hbm") protected String comment; @XmlElement(namespace = "http://www.hibernate.org/xsd/orm/hbm", required = true) protected JaxbHbmKeyType key; @XmlElements({ @XmlElement(name = "property", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JaxbHbmBasicAttributeType.class), @XmlElement(name = "many-to-one", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JaxbHbmManyToOneType.class), @XmlElement(name = "component", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JaxbHbmCompositeAttributeType.class), @XmlElement(name = "dynamic-component", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JaxbHbmDynamicComponentType.class), @XmlElement(name = "any", namespace = "http://www.hibernate.org/xsd/orm/hbm", type = JaxbHbmAnyAssociationType.class) }) protected List attributes; @XmlElement(name = "sql-insert", namespace = "http://www.hibernate.org/xsd/orm/hbm") protected JaxbHbmCustomSqlDmlType sqlInsert; @XmlElement(name = "sql-update", namespace = "http://www.hibernate.org/xsd/orm/hbm") protected JaxbHbmCustomSqlDmlType sqlUpdate; @XmlElement(name = "sql-delete", namespace = "http://www.hibernate.org/xsd/orm/hbm") protected JaxbHbmCustomSqlDmlType sqlDelete; @XmlAttribute(name = "fetch") protected JaxbHbmFetchStyleEnum fetch; @XmlAttribute(name = "inverse") protected Boolean inverse; @XmlAttribute(name = "optional") protected Boolean optional; @XmlAttribute(name = "schema") protected String schema; @XmlAttribute(name = "catalog") protected String catalog; @XmlAttribute(name = "table") protected String table; @XmlAttribute(name = "subselect") protected String subselectAttribute; /** * Gets the value of the subselect property. * * @return * possible object is * {@link String } * */ public String getSubselect() { return subselect; } /** * Sets the value of the subselect property. * * @param value * allowed object is * {@link String } * */ public void setSubselect(String value) { this.subselect = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { this.comment = value; } /** * Gets the value of the key property. * * @return * possible object is * {@link JaxbHbmKeyType } * */ public JaxbHbmKeyType getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link JaxbHbmKeyType } * */ public void setKey(JaxbHbmKeyType value) { this.key = value; } /** * Gets the value of the attributes 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 attributes property. * *

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

     *    getAttributes().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbHbmBasicAttributeType } * {@link JaxbHbmManyToOneType } * {@link JaxbHbmCompositeAttributeType } * {@link JaxbHbmDynamicComponentType } * {@link JaxbHbmAnyAssociationType } * * */ public List getAttributes() { if (attributes == null) { attributes = new ArrayList(); } return this.attributes; } /** * Gets the value of the sqlInsert property. * * @return * possible object is * {@link JaxbHbmCustomSqlDmlType } * */ public JaxbHbmCustomSqlDmlType getSqlInsert() { return sqlInsert; } /** * Sets the value of the sqlInsert property. * * @param value * allowed object is * {@link JaxbHbmCustomSqlDmlType } * */ public void setSqlInsert(JaxbHbmCustomSqlDmlType value) { this.sqlInsert = value; } /** * Gets the value of the sqlUpdate property. * * @return * possible object is * {@link JaxbHbmCustomSqlDmlType } * */ public JaxbHbmCustomSqlDmlType getSqlUpdate() { return sqlUpdate; } /** * Sets the value of the sqlUpdate property. * * @param value * allowed object is * {@link JaxbHbmCustomSqlDmlType } * */ public void setSqlUpdate(JaxbHbmCustomSqlDmlType value) { this.sqlUpdate = value; } /** * Gets the value of the sqlDelete property. * * @return * possible object is * {@link JaxbHbmCustomSqlDmlType } * */ public JaxbHbmCustomSqlDmlType getSqlDelete() { return sqlDelete; } /** * Sets the value of the sqlDelete property. * * @param value * allowed object is * {@link JaxbHbmCustomSqlDmlType } * */ public void setSqlDelete(JaxbHbmCustomSqlDmlType value) { this.sqlDelete = value; } /** * Gets the value of the fetch property. * * @return * possible object is * {@link JaxbHbmFetchStyleEnum } * */ public JaxbHbmFetchStyleEnum getFetch() { if (fetch == null) { return JaxbHbmFetchStyleEnum.JOIN; } else { return fetch; } } /** * Sets the value of the fetch property. * * @param value * allowed object is * {@link JaxbHbmFetchStyleEnum } * */ public void setFetch(JaxbHbmFetchStyleEnum value) { this.fetch = value; } /** * Gets the value of the inverse property. * * @return * possible object is * {@link Boolean } * */ public boolean isInverse() { if (inverse == null) { return false; } else { return inverse; } } /** * Sets the value of the inverse property. * * @param value * allowed object is * {@link Boolean } * */ public void setInverse(Boolean value) { this.inverse = value; } /** * Gets the value of the optional property. * * @return * possible object is * {@link Boolean } * */ public boolean isOptional() { if (optional == null) { return false; } else { return optional; } } /** * Sets the value of the optional property. * * @param value * allowed object is * {@link Boolean } * */ public void setOptional(Boolean value) { this.optional = 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 table property. * * @return * possible object is * {@link String } * */ public String getTable() { return table; } /** * Sets the value of the table property. * * @param value * allowed object is * {@link String } * */ public void setTable(String value) { this.table = value; } /** * Gets the value of the subselectAttribute property. * * @return * possible object is * {@link String } * */ public String getSubselectAttribute() { return subselectAttribute; } /** * Sets the value of the subselectAttribute property. * * @param value * allowed object is * {@link String } * */ public void setSubselectAttribute(String value) { this.subselectAttribute = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy