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.XmlAttribute;
015 import javax.xml.bind.annotation.XmlType;
016
017
018 /**
019 *
020 *
021 * @Target({METHOD, FIELD}) @Retention(RUNTIME)
022 * public @interface Version {}
023 *
024 *
025 *
026 * <p>Java class for version complex type.
027 *
028 * <p>The following schema fragment specifies the expected content contained within this class.
029 *
030 * <pre>
031 * <complexType name="version">
032 * <complexContent>
033 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034 * <sequence>
035 * <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/>
036 * <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
037 * </sequence>
038 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
039 * </restriction>
040 * </complexContent>
041 * </complexType>
042 * </pre>
043 *
044 *
045 */
046 @XmlAccessorType(XmlAccessType.FIELD)
047 @XmlType(name = "version", propOrder = {
048 "column",
049 "temporal"
050 })
051 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
052 public class Version implements Cloneable
053 {
054
055 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
056 protected Column column;
057 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
058 protected TemporalType temporal;
059 @XmlAttribute(required = true)
060 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
061 protected String name;
062
063 /**
064 * Creates a new {@code Version} instance.
065 *
066 */
067 public Version() {
068 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
069 super();
070 }
071
072 /**
073 * Creates a new {@code Version} instance by deeply copying a given {@code Version} instance.
074 *
075 *
076 * @param o
077 * The instance to copy.
078 * @throws NullPointerException
079 * if {@code o} is {@code null}.
080 */
081 public Version(final Version o) {
082 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
083 super();
084 if (o == null) {
085 throw new NullPointerException("Cannot create a copy of 'Version' from 'null'.");
086 }
087 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.Column
088 this.column = ((o.getColumn() == null)?null:o.getColumn().clone());
089 // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.TemporalType
090 this.temporal = o.getTemporal();
091 // CBuiltinLeafInfo: java.lang.String
092 this.name = o.getName();
093 }
094
095 /**
096 * Gets the value of the column property.
097 *
098 * @return
099 * possible object is
100 * {@link Column }
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 Column getColumn() {
105 return column;
106 }
107
108 /**
109 * Sets the value of the column property.
110 *
111 * @param value
112 * allowed object is
113 * {@link Column }
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 setColumn(Column value) {
118 this.column = value;
119 }
120
121 /**
122 * Gets the value of the temporal property.
123 *
124 * @return
125 * possible object is
126 * {@link TemporalType }
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 TemporalType getTemporal() {
131 return temporal;
132 }
133
134 /**
135 * Sets the value of the temporal property.
136 *
137 * @param value
138 * allowed object is
139 * {@link TemporalType }
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 setTemporal(TemporalType value) {
144 this.temporal = value;
145 }
146
147 /**
148 * Gets the value of the name property.
149 *
150 * @return
151 * possible object is
152 * {@link String }
153 *
154 */
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 String getName() {
157 return name;
158 }
159
160 /**
161 * Sets the value of the name property.
162 *
163 * @param value
164 * allowed object is
165 * {@link String }
166 *
167 */
168 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
169 public void setName(String value) {
170 this.name = value;
171 }
172
173 /**
174 * Creates and returns a deep copy of this object.
175 *
176 *
177 * @return
178 * A deep copy of this object.
179 */
180 @Override
181 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
182 public Version clone() {
183 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
184 return new Version(this);
185 }
186
187 }