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.XmlType;
016    
017    
018    /**
019     * 
020     * 
021     *         @Target({TYPE}) @Retention(RUNTIME)
022     *         public @interface Inheritance {
023     *           InheritanceType strategy() default SINGLE_TABLE;
024     *         }
025     * 
026     *       
027     * 
028     * <p>Java class for inheritance complex type.
029     * 
030     * <p>The following schema fragment specifies the expected content contained within this class.
031     * 
032     * <pre>
033     * &lt;complexType name="inheritance">
034     *   &lt;complexContent>
035     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036     *       &lt;attribute name="strategy" type="{http://java.sun.com/xml/ns/persistence/orm}inheritance-type" />
037     *     &lt;/restriction>
038     *   &lt;/complexContent>
039     * &lt;/complexType>
040     * </pre>
041     * 
042     * 
043     */
044    @XmlAccessorType(XmlAccessType.FIELD)
045    @XmlType(name = "inheritance")
046    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
047    public class Inheritance implements Cloneable
048    {
049    
050        @XmlAttribute
051        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
052        protected InheritanceType strategy;
053    
054        /**
055         * Creates a new {@code Inheritance} instance.
056         * 
057         */
058        public Inheritance() {
059            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
060            super();
061        }
062    
063        /**
064         * Creates a new {@code Inheritance} instance by deeply copying a given {@code Inheritance} instance.
065         * 
066         * 
067         * @param o
068         *     The instance to copy.
069         * @throws NullPointerException
070         *     if {@code o} is {@code null}.
071         */
072        public Inheritance(final Inheritance o) {
073            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
074            super();
075            if (o == null) {
076                throw new NullPointerException("Cannot create a copy of 'Inheritance' from 'null'.");
077            }
078            // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.InheritanceType
079            this.strategy = o.getStrategy();
080        }
081    
082        /**
083         * Gets the value of the strategy property.
084         * 
085         * @return
086         *     possible object is
087         *     {@link InheritanceType }
088         *     
089         */
090        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
091        public InheritanceType getStrategy() {
092            return strategy;
093        }
094    
095        /**
096         * Sets the value of the strategy property.
097         * 
098         * @param value
099         *     allowed object is
100         *     {@link InheritanceType }
101         *     
102         */
103        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
104        public void setStrategy(InheritanceType value) {
105            this.strategy = value;
106        }
107    
108        /**
109         * Creates and returns a deep copy of this object.
110         * 
111         * 
112         * @return
113         *     A deep copy of this object.
114         */
115        @Override
116        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
117        public Inheritance clone() {
118            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
119            return new Inheritance(this);
120        }
121    
122    }