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

org.hibernate.internal.jaxb.mapping.hbm.JaxbPropertiesElement 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, 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.07.16 at 04:28:04 PM PDT 
//


package org.hibernate.internal.jaxb.mapping.hbm;

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;


/**
 * 

Java class for properties-element complex type. * *

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

 * <complexType name="properties-element">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element name="property" type="{http://www.hibernate.org/xsd/hibernate-mapping}property-element"/>
 *           <element name="many-to-one" type="{http://www.hibernate.org/xsd/hibernate-mapping}many-to-one-element"/>
 *           <element name="component" type="{http://www.hibernate.org/xsd/hibernate-mapping}component-element"/>
 *           <element name="dynamic-component" type="{http://www.hibernate.org/xsd/hibernate-mapping}dynamic-component-element"/>
 *         </choice>
 *       </sequence>
 *       <attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *       <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "properties-element", propOrder = { "propertyOrManyToOneOrComponent" }) public class JaxbPropertiesElement { @XmlElements({ @XmlElement(name = "property", type = JaxbPropertyElement.class), @XmlElement(name = "component", type = JaxbComponentElement.class), @XmlElement(name = "dynamic-component", type = JaxbDynamicComponentElement.class), @XmlElement(name = "many-to-one", type = JaxbManyToOneElement.class) }) protected List propertyOrManyToOneOrComponent; @XmlAttribute protected Boolean insert; @XmlAttribute(required = true) protected String name; @XmlAttribute protected String node; @XmlAttribute(name = "optimistic-lock") protected Boolean optimisticLock; @XmlAttribute protected Boolean unique; @XmlAttribute protected Boolean update; /** * Gets the value of the propertyOrManyToOneOrComponent 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 propertyOrManyToOneOrComponent property. * *

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

     *    getPropertyOrManyToOneOrComponent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbPropertyElement } * {@link JaxbComponentElement } * {@link JaxbDynamicComponentElement } * {@link JaxbManyToOneElement } * * */ public List getPropertyOrManyToOneOrComponent() { if (propertyOrManyToOneOrComponent == null) { propertyOrManyToOneOrComponent = new ArrayList(); } return this.propertyOrManyToOneOrComponent; } /** * Gets the value of the insert property. * * @return * possible object is * {@link Boolean } * */ public boolean isInsert() { if (insert == null) { return true; } else { return insert; } } /** * Sets the value of the insert property. * * @param value * allowed object is * {@link Boolean } * */ public void setInsert(Boolean value) { this.insert = 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 optimisticLock property. * * @return * possible object is * {@link Boolean } * */ public boolean isOptimisticLock() { if (optimisticLock == null) { return true; } else { return optimisticLock; } } /** * Sets the value of the optimisticLock property. * * @param value * allowed object is * {@link Boolean } * */ public void setOptimisticLock(Boolean value) { this.optimisticLock = value; } /** * Gets the value of the unique property. * * @return * possible object is * {@link Boolean } * */ public boolean isUnique() { if (unique == null) { return false; } else { return unique; } } /** * Sets the value of the unique property. * * @param value * allowed object is * {@link Boolean } * */ public void setUnique(Boolean value) { this.unique = value; } /** * Gets the value of the update property. * * @return * possible object is * {@link Boolean } * */ public boolean isUpdate() { if (update == null) { return true; } else { return update; } } /** * Sets the value of the update property. * * @param value * allowed object is * {@link Boolean } * */ public void setUpdate(Boolean value) { this.update = value; } }