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 java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlType;
024:
025: /**
026: * <p>Java class for embeddable-attributes complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="embeddable-attributes">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element name="basic" type="{http://java.sun.com/xml/ns/persistence/orm}basic" maxOccurs="unbounded" minOccurs="0"/>
036: * <element name="transient" type="{http://java.sun.com/xml/ns/persistence/orm}transient" maxOccurs="unbounded" minOccurs="0"/>
037: * </sequence>
038: * </restriction>
039: * </complexContent>
040: * </complexType>
041: * </pre>
042: *
043: *
044: */
045: @XmlAccessorType(XmlAccessType.FIELD)
046: @XmlType(name="embeddable-attributes",propOrder={"basic","_transient"})
047: public class EmbeddableAttributes {
048:
049: protected List<Basic> basic;
050: @XmlElement(name="transient")
051: protected List<Transient> _transient;
052:
053: /**
054: * Gets the value of the basic property.
055: *
056: * <p>
057: * This accessor method returns a reference to the live list,
058: * not a snapshot. Therefore any modification you make to the
059: * returned list will be present inside the JAXB object.
060: * This is why there is not a <CODE>set</CODE> method for the basic property.
061: *
062: * <p>
063: * For example, to add a new item, do as follows:
064: * <pre>
065: * getBasic().add(newItem);
066: * </pre>
067: *
068: *
069: * <p>
070: * Objects of the following type(s) are allowed in the list
071: * {@link Basic }
072: *
073: *
074: */
075: public List<Basic> getBasic() {
076: if (basic == null) {
077: basic = new ArrayList<Basic>();
078: }
079: return this .basic;
080: }
081:
082: /**
083: * Gets the value of the transient property.
084: *
085: * <p>
086: * This accessor method returns a reference to the live list,
087: * not a snapshot. Therefore any modification you make to the
088: * returned list will be present inside the JAXB object.
089: * This is why there is not a <CODE>set</CODE> method for the transient property.
090: *
091: * <p>
092: * For example, to add a new item, do as follows:
093: * <pre>
094: * getTransient().add(newItem);
095: * </pre>
096: *
097: *
098: * <p>
099: * Objects of the following type(s) are allowed in the list
100: * {@link Transient }
101: *
102: *
103: */
104: public List<Transient> getTransient() {
105: if (_transient == null) {
106: _transient = new ArrayList<Transient>();
107: }
108: return this._transient;
109: }
110:
111: }
|