001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.jpa;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlType;
022:
023: /**
024: *
025: *
026: * @Target({METHOD, FIELD}) @Retention(RUNTIME)
027: * public @interface Version {}
028: *
029: *
030: *
031: * <p>Java class for version complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="version">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/>
041: * <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
042: * </sequence>
043: * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
044: * </restriction>
045: * </complexContent>
046: * </complexType>
047: * </pre>
048: *
049: *
050: */
051: @XmlAccessorType(XmlAccessType.FIELD)
052: @XmlType(name="version",propOrder={"column","temporal"})
053: public class Version {
054:
055: protected Column column;
056: protected TemporalType temporal;
057: @XmlAttribute(required=true)
058: protected String name;
059:
060: /**
061: * Gets the value of the column property.
062: *
063: * @return
064: * possible object is
065: * {@link Column }
066: *
067: */
068: public Column getColumn() {
069: return column;
070: }
071:
072: /**
073: * Sets the value of the column property.
074: *
075: * @param value
076: * allowed object is
077: * {@link Column }
078: *
079: */
080: public void setColumn(Column value) {
081: this .column = value;
082: }
083:
084: /**
085: * Gets the value of the temporal property.
086: *
087: * @return
088: * possible object is
089: * {@link TemporalType }
090: *
091: */
092: public TemporalType getTemporal() {
093: return temporal;
094: }
095:
096: /**
097: * Sets the value of the temporal property.
098: *
099: * @param value
100: * allowed object is
101: * {@link TemporalType }
102: *
103: */
104: public void setTemporal(TemporalType value) {
105: this .temporal = value;
106: }
107:
108: /**
109: * Gets the value of the name property.
110: *
111: * @return
112: * possible object is
113: * {@link String }
114: *
115: */
116: public String getName() {
117: return name;
118: }
119:
120: /**
121: * Sets the value of the name property.
122: *
123: * @param value
124: * allowed object is
125: * {@link String }
126: *
127: */
128: public void setName(String value) {
129: this.name = value;
130: }
131:
132: }
|