001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2010.08.18 at 10:46:56 PM CEST
006 //
007
008
009 package net.sourceforge.jpaxjc.ns.persistence.orm;
010
011 import javax.annotation.Generated;
012 import javax.xml.bind.annotation.XmlAccessType;
013 import javax.xml.bind.annotation.XmlAccessorType;
014 import javax.xml.bind.annotation.XmlElement;
015 import javax.xml.bind.annotation.XmlType;
016
017
018 /**
019 *
020 *
021 * Metadata that applies to the persistence unit and not just to
022 * the mapping file in which it is contained.
023 *
024 * If the xml-mapping-metadata-complete element is specified then
025 * the complete set of mapping metadata for the persistence unit
026 * is contained in the XML mapping files for the persistence unit.
027 *
028 *
029 *
030 * <p>Java class for persistence-unit-metadata complex type.
031 *
032 * <p>The following schema fragment specifies the expected content contained within this class.
033 *
034 * <pre>
035 * <complexType name="persistence-unit-metadata">
036 * <complexContent>
037 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038 * <sequence>
039 * <element name="xml-mapping-metadata-complete" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
040 * <element name="persistence-unit-defaults" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-defaults" minOccurs="0"/>
041 * </sequence>
042 * </restriction>
043 * </complexContent>
044 * </complexType>
045 * </pre>
046 *
047 *
048 */
049 @XmlAccessorType(XmlAccessType.FIELD)
050 @XmlType(name = "persistence-unit-metadata", propOrder = {
051 "xmlMappingMetadataComplete",
052 "persistenceUnitDefaults"
053 })
054 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
055 public class PersistenceUnitMetadata implements Cloneable
056 {
057
058 @XmlElement(name = "xml-mapping-metadata-complete")
059 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
060 protected EmptyType xmlMappingMetadataComplete;
061 @XmlElement(name = "persistence-unit-defaults")
062 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
063 protected PersistenceUnitDefaults persistenceUnitDefaults;
064
065 /**
066 * Creates a new {@code PersistenceUnitMetadata} instance.
067 *
068 */
069 public PersistenceUnitMetadata() {
070 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
071 super();
072 }
073
074 /**
075 * Creates a new {@code PersistenceUnitMetadata} instance by deeply copying a given {@code PersistenceUnitMetadata} instance.
076 *
077 *
078 * @param o
079 * The instance to copy.
080 * @throws NullPointerException
081 * if {@code o} is {@code null}.
082 */
083 public PersistenceUnitMetadata(final PersistenceUnitMetadata o) {
084 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
085 super();
086 if (o == null) {
087 throw new NullPointerException("Cannot create a copy of 'PersistenceUnitMetadata' from 'null'.");
088 }
089 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
090 this.xmlMappingMetadataComplete = ((o.getXmlMappingMetadataComplete() == null)?null:o.getXmlMappingMetadataComplete().clone());
091 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.PersistenceUnitDefaults
092 this.persistenceUnitDefaults = ((o.getPersistenceUnitDefaults() == null)?null:o.getPersistenceUnitDefaults().clone());
093 }
094
095 /**
096 * Gets the value of the xmlMappingMetadataComplete property.
097 *
098 * @return
099 * possible object is
100 * {@link EmptyType }
101 *
102 */
103 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
104 public EmptyType getXmlMappingMetadataComplete() {
105 return xmlMappingMetadataComplete;
106 }
107
108 /**
109 * Sets the value of the xmlMappingMetadataComplete property.
110 *
111 * @param value
112 * allowed object is
113 * {@link EmptyType }
114 *
115 */
116 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
117 public void setXmlMappingMetadataComplete(EmptyType value) {
118 this.xmlMappingMetadataComplete = value;
119 }
120
121 /**
122 * Gets the value of the persistenceUnitDefaults property.
123 *
124 * @return
125 * possible object is
126 * {@link PersistenceUnitDefaults }
127 *
128 */
129 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
130 public PersistenceUnitDefaults getPersistenceUnitDefaults() {
131 return persistenceUnitDefaults;
132 }
133
134 /**
135 * Sets the value of the persistenceUnitDefaults property.
136 *
137 * @param value
138 * allowed object is
139 * {@link PersistenceUnitDefaults }
140 *
141 */
142 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
143 public void setPersistenceUnitDefaults(PersistenceUnitDefaults value) {
144 this.persistenceUnitDefaults = value;
145 }
146
147 /**
148 * Creates and returns a deep copy of this object.
149 *
150 *
151 * @return
152 * A deep copy of this object.
153 */
154 @Override
155 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
156 public PersistenceUnitMetadata clone() {
157 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
158 return new PersistenceUnitMetadata(this);
159 }
160
161 }