001    //
002    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
003    // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
004    // Any modifications to this file will be lost upon recompilation of the source schema. 
005    // Generated on: 2010.08.18 at 10:46:56 PM CEST 
006    //
007    
008    
009    package net.sourceforge.jpaxjc.ns.persistence.orm;
010    
011    import javax.annotation.Generated;
012    import javax.xml.bind.annotation.XmlAccessType;
013    import javax.xml.bind.annotation.XmlAccessorType;
014    import javax.xml.bind.annotation.XmlAttribute;
015    import javax.xml.bind.annotation.XmlElement;
016    import javax.xml.bind.annotation.XmlType;
017    
018    
019    /**
020     * 
021     * 
022     *         @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
023     *         public @interface AttributeOverride {
024     *           String name();
025     *           Column column();
026     *         }
027     * 
028     *       
029     * 
030     * <p>Java class for attribute-override complex type.
031     * 
032     * <p>The following schema fragment specifies the expected content contained within this class.
033     * 
034     * <pre>
035     * &lt;complexType name="attribute-override">
036     *   &lt;complexContent>
037     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038     *       &lt;sequence>
039     *         &lt;element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column"/>
040     *       &lt;/sequence>
041     *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
042     *     &lt;/restriction>
043     *   &lt;/complexContent>
044     * &lt;/complexType>
045     * </pre>
046     * 
047     * 
048     */
049    @XmlAccessorType(XmlAccessType.FIELD)
050    @XmlType(name = "attribute-override", propOrder = {
051        "column"
052    })
053    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
054    public class AttributeOverride implements Cloneable
055    {
056    
057        @XmlElement(required = true)
058        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
059        protected Column column;
060        @XmlAttribute(required = true)
061        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
062        protected String name;
063    
064        /**
065         * Creates a new {@code AttributeOverride} instance.
066         * 
067         */
068        public AttributeOverride() {
069            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
070            super();
071        }
072    
073        /**
074         * Creates a new {@code AttributeOverride} instance by deeply copying a given {@code AttributeOverride} instance.
075         * 
076         * 
077         * @param o
078         *     The instance to copy.
079         * @throws NullPointerException
080         *     if {@code o} is {@code null}.
081         */
082        public AttributeOverride(final AttributeOverride o) {
083            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
084            super();
085            if (o == null) {
086                throw new NullPointerException("Cannot create a copy of 'AttributeOverride' from 'null'.");
087            }
088            // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.Column
089            this.column = ((o.getColumn() == null)?null:o.getColumn().clone());
090            // CBuiltinLeafInfo: java.lang.String
091            this.name = o.getName();
092        }
093    
094        /**
095         * Gets the value of the column property.
096         * 
097         * @return
098         *     possible object is
099         *     {@link Column }
100         *     
101         */
102        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
103        public Column getColumn() {
104            return column;
105        }
106    
107        /**
108         * Sets the value of the column property.
109         * 
110         * @param value
111         *     allowed object is
112         *     {@link Column }
113         *     
114         */
115        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
116        public void setColumn(Column value) {
117            this.column = value;
118        }
119    
120        /**
121         * Gets the value of the name property.
122         * 
123         * @return
124         *     possible object is
125         *     {@link String }
126         *     
127         */
128        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
129        public String getName() {
130            return name;
131        }
132    
133        /**
134         * Sets the value of the name property.
135         * 
136         * @param value
137         *     allowed object is
138         *     {@link String }
139         *     
140         */
141        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
142        public void setName(String value) {
143            this.name = value;
144        }
145    
146        /**
147         * Creates and returns a deep copy of this object.
148         * 
149         * 
150         * @return
151         *     A deep copy of this object.
152         */
153        @Override
154        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
155        public AttributeOverride clone() {
156            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
157            return new AttributeOverride(this);
158        }
159    
160    }