diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xmlmapping/xmlbindings/myaddress/Address.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xmlmapping/xmlbindings/myaddress/Address.java index cfd53c7f9..b25ae1f95 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xmlmapping/xmlbindings/myaddress/Address.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xmlmapping/xmlbindings/myaddress/Address.java @@ -1,142 +1,152 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2006.10.04 at 03:08:16 PM PDT -// - - -package org.apache.openjpa.persistence.xmlmapping.xmlbindings.myaddress; - -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.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -/** - *
Java class for Address complex type. - * - *
The following schema fragment specifies the expected content contained within this class. - * - *
- * <complexType name="Address"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="Street" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="3"/> - * <element name="City" type="{http://www.w3.org/2001/XMLSchema}string"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - *- * - * - */ - -@XmlRootElement -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Address", propOrder = { - "name", - "street", - "city" -}) -public class Address { - - @XmlElement(name = "Name") - protected String name; - @XmlElement(name = "Street") - protected List
- * 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 set
method for the street property.
- *
- *
- * For example, to add a new item, do as follows: - *
- * getStreet().add(newItem); - *- * - * - *
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List Java class for Address complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * The JAXB generated source has been modified by adding
+ * a
+ * 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.
+ *
+ *
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List
+ * <complexType name="Address">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="Street" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="3"/>
+ * <element name="City" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ * set
method for the street property. Otherwise
+ * the proxying mechanism will not work - see OPENJPA-834.
+ */
+
+@XmlRootElement
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Address", propOrder = {
+ "name",
+ "street",
+ "city"
+})
+public class Address {
+
+ @XmlElement(name = "Name")
+ protected String name;
+ @XmlElement(name = "Street")
+ protected List
+ * getStreet().add(newItem);
+ *
+ *
+ *
+ *