You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2006/12/20 01:13:44 UTC
svn commit: r488864 [11/23] - in
/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee:
./ jba/ jba/cmp/ jpa/ oej2/ sun/
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jba/cmp/package-info.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jba/cmp/package-info.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jba/cmp/package-info.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jba/cmp/package-info.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,18 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.openejb.jee.jba.cmp;
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AccessType.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AccessType.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AccessType.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AccessType.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,52 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlEnum;
+
+
+/**
+ * <p>Java class for access-type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="access-type">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ * <enumeration value="PROPERTY"/>
+ * <enumeration value="FIELD"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+@XmlEnum
+public enum AccessType {
+
+ PROPERTY,
+ FIELD;
+
+ public String value() {
+ return name();
+ }
+
+ public static AccessType fromValue(String v) {
+ return valueOf(v);
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AssociationOverride.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AssociationOverride.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AssociationOverride.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AssociationOverride.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,123 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface AssociationOverride {
+ * String name();
+ * JoinColumn[] joinColumns();
+ * }
+ *
+ *
+ *
+ * <p>Java class for association-override complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="association-override">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="join-column" type="{http://java.sun.com/xml/ns/persistence/orm}join-column" maxOccurs="unbounded"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "association-override", propOrder = {
+ "joinColumn"
+})
+public class AssociationOverride {
+
+ @XmlElement(name = "join-column", required = true)
+ protected List<JoinColumn> joinColumn;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the joinColumn property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the joinColumn property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getJoinColumn().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JoinColumn }
+ *
+ *
+ */
+ public List<JoinColumn> getJoinColumn() {
+ if (joinColumn == null) {
+ joinColumn = new ArrayList<JoinColumn>();
+ }
+ return this.joinColumn;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AttributeOverride.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AttributeOverride.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AttributeOverride.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/AttributeOverride.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,116 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface AttributeOverride {
+ * String name();
+ * Column column();
+ * }
+ *
+ *
+ *
+ * <p>Java class for attribute-override complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="attribute-override">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "attribute-override", propOrder = {
+ "column"
+})
+public class AttributeOverride {
+
+ @XmlElement(required = true)
+ protected Column column;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the column property.
+ *
+ * @return
+ * possible object is
+ * {@link Column }
+ *
+ */
+ public Column getColumn() {
+ return column;
+ }
+
+ /**
+ * Sets the value of the column property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Column }
+ *
+ */
+ public void setColumn(Column value) {
+ this.column = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Attributes.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Attributes.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Attributes.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Attributes.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,385 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * This element contains the entity field or property mappings.
+ * It may be sparsely populated to include only a subset of the
+ * fields or properties. If metadata-complete for the entity is true
+ * then the remainder of the attributes will be defaulted according
+ * to the default rules.
+ *
+ *
+ *
+ * <p>Java class for attributes complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="attributes">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <choice>
+ * <element name="id" type="{http://java.sun.com/xml/ns/persistence/orm}id" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="embedded-id" type="{http://java.sun.com/xml/ns/persistence/orm}embedded-id" minOccurs="0"/>
+ * </choice>
+ * <element name="basic" type="{http://java.sun.com/xml/ns/persistence/orm}basic" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="version" type="{http://java.sun.com/xml/ns/persistence/orm}version" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="many-to-one" type="{http://java.sun.com/xml/ns/persistence/orm}many-to-one" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="one-to-many" type="{http://java.sun.com/xml/ns/persistence/orm}one-to-many" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="one-to-one" type="{http://java.sun.com/xml/ns/persistence/orm}one-to-one" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="many-to-many" type="{http://java.sun.com/xml/ns/persistence/orm}many-to-many" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="embedded" type="{http://java.sun.com/xml/ns/persistence/orm}embedded" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="transient" type="{http://java.sun.com/xml/ns/persistence/orm}transient" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "attributes", propOrder = {
+ "id",
+ "embeddedId",
+ "basic",
+ "version",
+ "manyToOne",
+ "oneToMany",
+ "oneToOne",
+ "manyToMany",
+ "embedded",
+ "_transient"
+})
+public class Attributes {
+
+ protected List<Id> id;
+ @XmlElement(name = "embedded-id")
+ protected EmbeddedId embeddedId;
+ protected List<Basic> basic;
+ protected List<Version> version;
+ @XmlElement(name = "many-to-one")
+ protected List<ManyToOne> manyToOne;
+ @XmlElement(name = "one-to-many")
+ protected List<OneToMany> oneToMany;
+ @XmlElement(name = "one-to-one")
+ protected List<OneToOne> oneToOne;
+ @XmlElement(name = "many-to-many")
+ protected List<ManyToMany> manyToMany;
+ protected List<Embedded> embedded;
+ @XmlElement(name = "transient")
+ protected List<Transient> _transient;
+
+ /**
+ * Gets the value of the id property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the id property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getId().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Id }
+ *
+ *
+ */
+ public List<Id> getId() {
+ if (id == null) {
+ id = new ArrayList<Id>();
+ }
+ return this.id;
+ }
+
+ /**
+ * Gets the value of the embeddedId property.
+ *
+ * @return
+ * possible object is
+ * {@link EmbeddedId }
+ *
+ */
+ public EmbeddedId getEmbeddedId() {
+ return embeddedId;
+ }
+
+ /**
+ * Sets the value of the embeddedId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmbeddedId }
+ *
+ */
+ public void setEmbeddedId(EmbeddedId value) {
+ this.embeddedId = value;
+ }
+
+ /**
+ * Gets the value of the basic property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the basic property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBasic().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Basic }
+ *
+ *
+ */
+ public List<Basic> getBasic() {
+ if (basic == null) {
+ basic = new ArrayList<Basic>();
+ }
+ return this.basic;
+ }
+
+ /**
+ * Gets the value of the version property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the version property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getVersion().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Version }
+ *
+ *
+ */
+ public List<Version> getVersion() {
+ if (version == null) {
+ version = new ArrayList<Version>();
+ }
+ return this.version;
+ }
+
+ /**
+ * Gets the value of the manyToOne property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the manyToOne property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getManyToOne().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ManyToOne }
+ *
+ *
+ */
+ public List<ManyToOne> getManyToOne() {
+ if (manyToOne == null) {
+ manyToOne = new ArrayList<ManyToOne>();
+ }
+ return this.manyToOne;
+ }
+
+ /**
+ * Gets the value of the oneToMany property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the oneToMany property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getOneToMany().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link OneToMany }
+ *
+ *
+ */
+ public List<OneToMany> getOneToMany() {
+ if (oneToMany == null) {
+ oneToMany = new ArrayList<OneToMany>();
+ }
+ return this.oneToMany;
+ }
+
+ /**
+ * Gets the value of the oneToOne property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the oneToOne property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getOneToOne().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link OneToOne }
+ *
+ *
+ */
+ public List<OneToOne> getOneToOne() {
+ if (oneToOne == null) {
+ oneToOne = new ArrayList<OneToOne>();
+ }
+ return this.oneToOne;
+ }
+
+ /**
+ * Gets the value of the manyToMany property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the manyToMany property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getManyToMany().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ManyToMany }
+ *
+ *
+ */
+ public List<ManyToMany> getManyToMany() {
+ if (manyToMany == null) {
+ manyToMany = new ArrayList<ManyToMany>();
+ }
+ return this.manyToMany;
+ }
+
+ /**
+ * Gets the value of the embedded property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the embedded property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEmbedded().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Embedded }
+ *
+ *
+ */
+ public List<Embedded> getEmbedded() {
+ if (embedded == null) {
+ embedded = new ArrayList<Embedded>();
+ }
+ return this.embedded;
+ }
+
+ /**
+ * Gets the value of the transient property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the transient property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTransient().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Transient }
+ *
+ *
+ */
+ public List<Transient> getTransient() {
+ if (_transient == null) {
+ _transient = new ArrayList<Transient>();
+ }
+ return this._transient;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Basic.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Basic.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Basic.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Basic.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,251 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface Basic {
+ * FetchType fetch() default EAGER;
+ * boolean optional() default true;
+ * }
+ *
+ *
+ *
+ * <p>Java class for basic complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="basic">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/>
+ * <choice>
+ * <element name="lob" type="{http://java.sun.com/xml/ns/persistence/orm}lob" minOccurs="0"/>
+ * <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
+ * <element name="enumerated" type="{http://java.sun.com/xml/ns/persistence/orm}enumerated" minOccurs="0"/>
+ * </choice>
+ * </sequence>
+ * <attribute name="fetch" type="{http://java.sun.com/xml/ns/persistence/orm}fetch-type" />
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "basic", propOrder = {
+ "column",
+ "lob",
+ "temporal",
+ "enumerated"
+})
+public class Basic {
+
+ protected Column column;
+ protected Lob lob;
+ protected TemporalType temporal;
+ protected EnumType enumerated;
+ @XmlAttribute
+ protected FetchType fetch;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected Boolean optional;
+
+ /**
+ * Gets the value of the column property.
+ *
+ * @return
+ * possible object is
+ * {@link Column }
+ *
+ */
+ public Column getColumn() {
+ return column;
+ }
+
+ /**
+ * Sets the value of the column property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Column }
+ *
+ */
+ public void setColumn(Column value) {
+ this.column = value;
+ }
+
+ /**
+ * Gets the value of the lob property.
+ *
+ * @return
+ * possible object is
+ * {@link Lob }
+ *
+ */
+ public Lob getLob() {
+ return lob;
+ }
+
+ /**
+ * Sets the value of the lob property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Lob }
+ *
+ */
+ public void setLob(Lob value) {
+ this.lob = value;
+ }
+
+ /**
+ * Gets the value of the temporal property.
+ *
+ * @return
+ * possible object is
+ * {@link TemporalType }
+ *
+ */
+ public TemporalType getTemporal() {
+ return temporal;
+ }
+
+ /**
+ * Sets the value of the temporal property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TemporalType }
+ *
+ */
+ public void setTemporal(TemporalType value) {
+ this.temporal = value;
+ }
+
+ /**
+ * Gets the value of the enumerated property.
+ *
+ * @return
+ * possible object is
+ * {@link EnumType }
+ *
+ */
+ public EnumType getEnumerated() {
+ return enumerated;
+ }
+
+ /**
+ * Sets the value of the enumerated property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EnumType }
+ *
+ */
+ public void setEnumerated(EnumType value) {
+ this.enumerated = value;
+ }
+
+ /**
+ * Gets the value of the fetch property.
+ *
+ * @return
+ * possible object is
+ * {@link FetchType }
+ *
+ */
+ public FetchType getFetch() {
+ return fetch;
+ }
+
+ /**
+ * Sets the value of the fetch property.
+ *
+ * @param value
+ * allowed object is
+ * {@link FetchType }
+ *
+ */
+ public void setFetch(FetchType value) {
+ this.fetch = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the optional property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isOptional() {
+ return optional;
+ }
+
+ /**
+ * Sets the value of the optional property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setOptional(Boolean value) {
+ this.optional = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/CascadeType.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/CascadeType.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/CascadeType.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/CascadeType.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,196 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH};
+ *
+ *
+ *
+ * <p>Java class for cascade-type complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="cascade-type">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="cascade-all" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
+ * <element name="cascade-persist" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
+ * <element name="cascade-merge" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
+ * <element name="cascade-remove" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
+ * <element name="cascade-refresh" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "cascade-type", propOrder = {
+ "cascadeAll",
+ "cascadePersist",
+ "cascadeMerge",
+ "cascadeRemove",
+ "cascadeRefresh"
+})
+public class CascadeType {
+
+ @XmlElement(name = "cascade-all")
+ protected EmptyType cascadeAll;
+ @XmlElement(name = "cascade-persist")
+ protected EmptyType cascadePersist;
+ @XmlElement(name = "cascade-merge")
+ protected EmptyType cascadeMerge;
+ @XmlElement(name = "cascade-remove")
+ protected EmptyType cascadeRemove;
+ @XmlElement(name = "cascade-refresh")
+ protected EmptyType cascadeRefresh;
+
+ /**
+ * Gets the value of the cascadeAll property.
+ *
+ * @return
+ * possible object is
+ * {@link EmptyType }
+ *
+ */
+ public EmptyType getCascadeAll() {
+ return cascadeAll;
+ }
+
+ /**
+ * Sets the value of the cascadeAll property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmptyType }
+ *
+ */
+ public void setCascadeAll(EmptyType value) {
+ this.cascadeAll = value;
+ }
+
+ /**
+ * Gets the value of the cascadePersist property.
+ *
+ * @return
+ * possible object is
+ * {@link EmptyType }
+ *
+ */
+ public EmptyType getCascadePersist() {
+ return cascadePersist;
+ }
+
+ /**
+ * Sets the value of the cascadePersist property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmptyType }
+ *
+ */
+ public void setCascadePersist(EmptyType value) {
+ this.cascadePersist = value;
+ }
+
+ /**
+ * Gets the value of the cascadeMerge property.
+ *
+ * @return
+ * possible object is
+ * {@link EmptyType }
+ *
+ */
+ public EmptyType getCascadeMerge() {
+ return cascadeMerge;
+ }
+
+ /**
+ * Sets the value of the cascadeMerge property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmptyType }
+ *
+ */
+ public void setCascadeMerge(EmptyType value) {
+ this.cascadeMerge = value;
+ }
+
+ /**
+ * Gets the value of the cascadeRemove property.
+ *
+ * @return
+ * possible object is
+ * {@link EmptyType }
+ *
+ */
+ public EmptyType getCascadeRemove() {
+ return cascadeRemove;
+ }
+
+ /**
+ * Sets the value of the cascadeRemove property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmptyType }
+ *
+ */
+ public void setCascadeRemove(EmptyType value) {
+ this.cascadeRemove = value;
+ }
+
+ /**
+ * Gets the value of the cascadeRefresh property.
+ *
+ * @return
+ * possible object is
+ * {@link EmptyType }
+ *
+ */
+ public EmptyType getCascadeRefresh() {
+ return cascadeRefresh;
+ }
+
+ /**
+ * Sets the value of the cascadeRefresh property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmptyType }
+ *
+ */
+ public void setCascadeRefresh(EmptyType value) {
+ this.cascadeRefresh = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Column.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Column.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Column.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Column.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,335 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface Column {
+ * String name() default "";
+ * boolean unique() default false;
+ * boolean nullable() default true;
+ * boolean insertable() default true;
+ * boolean updatable() default true;
+ * String columnDefinition() default "";
+ * String table() default "";
+ * int length() default 255;
+ * int precision() default 0; // decimal precision
+ * int scale() default 0; // decimal scale
+ * }
+ *
+ *
+ *
+ * <p>Java class for column complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="column">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}int" />
+ * <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}int" />
+ * <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "column")
+public class Column {
+
+ @XmlAttribute(name = "column-definition")
+ protected String columnDefinition;
+ @XmlAttribute
+ protected Boolean insertable;
+ @XmlAttribute
+ protected Integer length;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute
+ protected Boolean nullable;
+ @XmlAttribute
+ protected Integer precision;
+ @XmlAttribute
+ protected Integer scale;
+ @XmlAttribute
+ protected String table;
+ @XmlAttribute
+ protected Boolean unique;
+ @XmlAttribute
+ protected Boolean updatable;
+
+ /**
+ * Gets the value of the columnDefinition property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getColumnDefinition() {
+ return columnDefinition;
+ }
+
+ /**
+ * Sets the value of the columnDefinition property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setColumnDefinition(String value) {
+ this.columnDefinition = value;
+ }
+
+ /**
+ * Gets the value of the insertable property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isInsertable() {
+ return insertable;
+ }
+
+ /**
+ * Sets the value of the insertable property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setInsertable(Boolean value) {
+ this.insertable = value;
+ }
+
+ /**
+ * Gets the value of the length property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getLength() {
+ return length;
+ }
+
+ /**
+ * Sets the value of the length property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setLength(Integer value) {
+ this.length = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the nullable property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isNullable() {
+ return nullable;
+ }
+
+ /**
+ * Sets the value of the nullable property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setNullable(Boolean value) {
+ this.nullable = value;
+ }
+
+ /**
+ * Gets the value of the precision property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getPrecision() {
+ return precision;
+ }
+
+ /**
+ * Sets the value of the precision property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setPrecision(Integer value) {
+ this.precision = value;
+ }
+
+ /**
+ * Gets the value of the scale property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getScale() {
+ return scale;
+ }
+
+ /**
+ * Sets the value of the scale property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setScale(Integer value) {
+ this.scale = value;
+ }
+
+ /**
+ * Gets the value of the table property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTable() {
+ return table;
+ }
+
+ /**
+ * Sets the value of the table property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTable(String value) {
+ this.table = value;
+ }
+
+ /**
+ * Gets the value of the unique property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isUnique() {
+ return unique;
+ }
+
+ /**
+ * Sets the value of the unique property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setUnique(Boolean value) {
+ this.unique = value;
+ }
+
+ /**
+ * Gets the value of the updatable property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isUpdatable() {
+ return updatable;
+ }
+
+ /**
+ * Sets the value of the updatable property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setUpdatable(Boolean value) {
+ this.updatable = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/ColumnResult.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/ColumnResult.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/ColumnResult.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/ColumnResult.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,83 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({}) @Retention(RUNTIME)
+ * public @interface ColumnResult {
+ * String name();
+ * }
+ *
+ *
+ *
+ * <p>Java class for column-result complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="column-result">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "column-result")
+public class ColumnResult {
+
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorColumn.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorColumn.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorColumn.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorColumn.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,167 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({TYPE}) @Retention(RUNTIME)
+ * public @interface DiscriminatorColumn {
+ * String name() default "DTYPE";
+ * DiscriminatorType discriminatorType() default STRING;
+ * String columnDefinition() default "";
+ * int length() default 31;
+ * }
+ *
+ *
+ *
+ * <p>Java class for discriminator-column complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="discriminator-column">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="discriminator-type" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-type" />
+ * <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "discriminator-column")
+public class DiscriminatorColumn {
+
+ @XmlAttribute(name = "column-definition")
+ protected String columnDefinition;
+ @XmlAttribute(name = "discriminator-type")
+ protected DiscriminatorType discriminatorType;
+ @XmlAttribute
+ protected Integer length;
+ @XmlAttribute
+ protected String name;
+
+ /**
+ * Gets the value of the columnDefinition property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getColumnDefinition() {
+ return columnDefinition;
+ }
+
+ /**
+ * Sets the value of the columnDefinition property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setColumnDefinition(String value) {
+ this.columnDefinition = value;
+ }
+
+ /**
+ * Gets the value of the discriminatorType property.
+ *
+ * @return
+ * possible object is
+ * {@link DiscriminatorType }
+ *
+ */
+ public DiscriminatorType getDiscriminatorType() {
+ return discriminatorType;
+ }
+
+ /**
+ * Sets the value of the discriminatorType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DiscriminatorType }
+ *
+ */
+ public void setDiscriminatorType(DiscriminatorType value) {
+ this.discriminatorType = value;
+ }
+
+ /**
+ * Gets the value of the length property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getLength() {
+ return length;
+ }
+
+ /**
+ * Sets the value of the length property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setLength(Integer value) {
+ this.length = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorType.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorType.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorType.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/DiscriminatorType.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlEnum;
+
+
+/**
+ * <p>Java class for discriminator-type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="discriminator-type">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ * <enumeration value="STRING"/>
+ * <enumeration value="CHAR"/>
+ * <enumeration value="INTEGER"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+@XmlEnum
+public enum DiscriminatorType {
+
+ STRING,
+ CHAR,
+ INTEGER;
+
+ public String value() {
+ return name();
+ }
+
+ public static DiscriminatorType fromValue(String v) {
+ return valueOf(v);
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embeddable.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embeddable.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embeddable.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embeddable.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,199 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * Defines the settings and mappings for embeddable objects. Is
+ * allowed to be sparsely populated and used in conjunction with
+ * the annotations. Alternatively, the metadata-complete attribute
+ * can be used to indicate that no annotations are to be processed
+ * in the class. If this is the case then the defaulting rules will
+ * be recursively applied.
+ *
+ * @Target({TYPE}) @Retention(RUNTIME)
+ * public @interface Embeddable {}
+ *
+ *
+ *
+ * <p>Java class for embeddable complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="embeddable">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="attributes" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable-attributes" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
+ * <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "embeddable", propOrder = {
+ "description",
+ "attributes"
+})
+public class Embeddable {
+
+ protected String description;
+ protected EmbeddableAttributes attributes;
+ @XmlAttribute
+ protected AccessType access;
+ @XmlAttribute(name = "class", required = true)
+ protected String clazz;
+ @XmlAttribute(name = "metadata-complete")
+ protected Boolean metadataComplete;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the attributes property.
+ *
+ * @return
+ * possible object is
+ * {@link EmbeddableAttributes }
+ *
+ */
+ public EmbeddableAttributes getAttributes() {
+ return attributes;
+ }
+
+ /**
+ * Sets the value of the attributes property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EmbeddableAttributes }
+ *
+ */
+ public void setAttributes(EmbeddableAttributes value) {
+ this.attributes = value;
+ }
+
+ /**
+ * Gets the value of the access property.
+ *
+ * @return
+ * possible object is
+ * {@link AccessType }
+ *
+ */
+ public AccessType getAccess() {
+ return access;
+ }
+
+ /**
+ * Sets the value of the access property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AccessType }
+ *
+ */
+ public void setAccess(AccessType value) {
+ this.access = value;
+ }
+
+ /**
+ * Gets the value of the clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = value;
+ }
+
+ /**
+ * Gets the value of the metadataComplete property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isMetadataComplete() {
+ return metadataComplete;
+ }
+
+ /**
+ * Sets the value of the metadataComplete property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setMetadataComplete(Boolean value) {
+ this.metadataComplete = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddableAttributes.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddableAttributes.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddableAttributes.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddableAttributes.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,117 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for embeddable-attributes complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="embeddable-attributes">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="basic" type="{http://java.sun.com/xml/ns/persistence/orm}basic" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="transient" type="{http://java.sun.com/xml/ns/persistence/orm}transient" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "embeddable-attributes", propOrder = {
+ "basic",
+ "_transient"
+})
+public class EmbeddableAttributes {
+
+ protected List<Basic> basic;
+ @XmlElement(name = "transient")
+ protected List<Transient> _transient;
+
+ /**
+ * Gets the value of the basic property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the basic property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBasic().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Basic }
+ *
+ *
+ */
+ public List<Basic> getBasic() {
+ if (basic == null) {
+ basic = new ArrayList<Basic>();
+ }
+ return this.basic;
+ }
+
+ /**
+ * Gets the value of the transient property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the transient property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTransient().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Transient }
+ *
+ *
+ */
+ public List<Transient> getTransient() {
+ if (_transient == null) {
+ _transient = new ArrayList<Transient>();
+ }
+ return this._transient;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embedded.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embedded.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embedded.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/Embedded.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,120 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface Embedded {}
+ *
+ *
+ *
+ * <p>Java class for embedded complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="embedded">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "embedded", propOrder = {
+ "attributeOverride"
+})
+public class Embedded {
+
+ @XmlElement(name = "attribute-override")
+ protected List<AttributeOverride> attributeOverride;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the attributeOverride property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the attributeOverride property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAttributeOverride().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link AttributeOverride }
+ *
+ *
+ */
+ public List<AttributeOverride> getAttributeOverride() {
+ if (attributeOverride == null) {
+ attributeOverride = new ArrayList<AttributeOverride>();
+ }
+ return this.attributeOverride;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddedId.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddedId.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddedId.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmbeddedId.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,120 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * @Target({METHOD, FIELD}) @Retention(RUNTIME)
+ * public @interface EmbeddedId {}
+ *
+ *
+ *
+ * <p>Java class for embedded-id complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="embedded-id">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "embedded-id", propOrder = {
+ "attributeOverride"
+})
+public class EmbeddedId {
+
+ @XmlElement(name = "attribute-override")
+ protected List<AttributeOverride> attributeOverride;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the attributeOverride property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the attributeOverride property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAttributeOverride().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link AttributeOverride }
+ *
+ *
+ */
+ public List<AttributeOverride> getAttributeOverride() {
+ if (attributeOverride == null) {
+ attributeOverride = new ArrayList<AttributeOverride>();
+ }
+ return this.attributeOverride;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmptyType.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmptyType.java?view=auto&rev=488864
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmptyType.java (added)
+++ incubator/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/EmptyType.java Tue Dec 19 16:13:33 2006
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.openejb.jee.jpa;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for emptyType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="emptyType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "emptyType")
+public class EmptyType {
+
+
+}