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

org.hibernate.boot.jaxb.hbm.spi.JaxbHbmCompositeIdType 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: 2019.03.21 at 04:13:28 PM CET 
//


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 composite key may be modelled by a java class with a property for each
 *                 key column. The class must implement java.io.Serializable and reimplement equals()
 *                 and hashCode().
 *             
 * 
 * 

Java class for CompositeIdType complex type. * *

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

 * <complexType name="CompositeIdType">
 *   <complexContent>
 *     <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
 *       <sequence>
 *         <choice maxOccurs="unbounded">
 *           <element name="key-property" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyBasicAttributeType"/>
 *           <element name="key-many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeKeyManyToOneType"/>
 *         </choice>
 *         <element name="generator" type="{http://www.hibernate.org/xsd/orm/hbm}GeneratorSpecificationType" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="class" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
 *       <attribute name="mapped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueCompositeIdEnum" default="undefined" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CompositeIdType", propOrder = { "keyPropertyOrKeyManyToOne", "generator" }) public class JaxbHbmCompositeIdType extends JaxbHbmToolingHintContainer implements Serializable, ToolingHintContainer { @XmlElements({ @XmlElement(name = "key-property", type = JaxbHbmCompositeKeyBasicAttributeType.class), @XmlElement(name = "key-many-to-one", type = JaxbHbmCompositeKeyManyToOneType.class) }) protected List keyPropertyOrKeyManyToOne; protected JaxbHbmGeneratorSpecificationType generator; @XmlAttribute(name = "access") protected String access; @XmlAttribute(name = "class") protected String clazz; @XmlAttribute(name = "mapped") protected Boolean mapped; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "node") protected String node; @XmlAttribute(name = "unsaved-value") protected JaxbHbmUnsavedValueCompositeIdEnum unsavedValue; /** * Gets the value of the keyPropertyOrKeyManyToOne 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 keyPropertyOrKeyManyToOne property. * *

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

     *    getKeyPropertyOrKeyManyToOne().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbHbmCompositeKeyBasicAttributeType } * {@link JaxbHbmCompositeKeyManyToOneType } * * */ public List getKeyPropertyOrKeyManyToOne() { if (keyPropertyOrKeyManyToOne == null) { keyPropertyOrKeyManyToOne = new ArrayList(); } return this.keyPropertyOrKeyManyToOne; } /** * Gets the value of the generator property. * * @return * possible object is * {@link JaxbHbmGeneratorSpecificationType } * */ public JaxbHbmGeneratorSpecificationType getGenerator() { return generator; } /** * Sets the value of the generator property. * * @param value * allowed object is * {@link JaxbHbmGeneratorSpecificationType } * */ public void setGenerator(JaxbHbmGeneratorSpecificationType value) { this.generator = value; } /** * Gets the value of the access property. * * @return * possible object is * {@link String } * */ public String getAccess() { return access; } /** * Sets the value of the access property. * * @param value * allowed object is * {@link String } * */ public void setAccess(String value) { this.access = 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 mapped property. * * @return * possible object is * {@link Boolean } * */ public boolean isMapped() { if (mapped == null) { return false; } else { return mapped; } } /** * Sets the value of the mapped property. * * @param value * allowed object is * {@link Boolean } * */ public void setMapped(Boolean value) { this.mapped = 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 node property. * * @return * possible object is * {@link String } * */ public String getNode() { return node; } /** * Sets the value of the node property. * * @param value * allowed object is * {@link String } * */ public void setNode(String value) { this.node = value; } /** * Gets the value of the unsavedValue property. * * @return * possible object is * {@link JaxbHbmUnsavedValueCompositeIdEnum } * */ public JaxbHbmUnsavedValueCompositeIdEnum getUnsavedValue() { if (unsavedValue == null) { return JaxbHbmUnsavedValueCompositeIdEnum.UNDEFINED; } else { return unsavedValue; } } /** * Sets the value of the unsavedValue property. * * @param value * allowed object is * {@link JaxbHbmUnsavedValueCompositeIdEnum } * */ public void setUnsavedValue(JaxbHbmUnsavedValueCompositeIdEnum value) { this.unsavedValue = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy