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({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
027: * public @interface PrimaryKeyJoinColumn {
028: * String name() default "";
029: * String referencedColumnName() default "";
030: * String columnDefinition() default "";
031: * }
032: *
033: *
034: *
035: * <p>Java class for primary-key-join-column complex type.
036: *
037: * <p>The following schema fragment specifies the expected content contained within this class.
038: *
039: * <pre>
040: * <complexType name="primary-key-join-column">
041: * <complexContent>
042: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
043: * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
044: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
045: * <attribute name="referenced-column-name" type="{http://www.w3.org/2001/XMLSchema}string" />
046: * </restriction>
047: * </complexContent>
048: * </complexType>
049: * </pre>
050: *
051: *
052: */
053: @XmlAccessorType(XmlAccessType.FIELD)
054: @XmlType(name="primary-key-join-column")
055: public class PrimaryKeyJoinColumn {
056:
057: @XmlAttribute(name="column-definition")
058: protected String columnDefinition;
059: @XmlAttribute
060: protected String name;
061: @XmlAttribute(name="referenced-column-name")
062: protected String referencedColumnName;
063:
064: /**
065: * Gets the value of the columnDefinition property.
066: *
067: * @return
068: * possible object is
069: * {@link String }
070: *
071: */
072: public String getColumnDefinition() {
073: return columnDefinition;
074: }
075:
076: /**
077: * Sets the value of the columnDefinition property.
078: *
079: * @param value
080: * allowed object is
081: * {@link String }
082: *
083: */
084: public void setColumnDefinition(String value) {
085: this .columnDefinition = value;
086: }
087:
088: /**
089: * Gets the value of the name property.
090: *
091: * @return
092: * possible object is
093: * {@link String }
094: *
095: */
096: public String getName() {
097: return name;
098: }
099:
100: /**
101: * Sets the value of the name property.
102: *
103: * @param value
104: * allowed object is
105: * {@link String }
106: *
107: */
108: public void setName(String value) {
109: this .name = value;
110: }
111:
112: /**
113: * Gets the value of the referencedColumnName property.
114: *
115: * @return
116: * possible object is
117: * {@link String }
118: *
119: */
120: public String getReferencedColumnName() {
121: return referencedColumnName;
122: }
123:
124: /**
125: * Sets the value of the referencedColumnName property.
126: *
127: * @param value
128: * allowed object is
129: * {@link String }
130: *
131: */
132: public void setReferencedColumnName(String value) {
133: this.referencedColumnName = value;
134: }
135:
136: }
|