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 java.util.ArrayList;
012    import java.util.Iterator;
013    import java.util.List;
014    import javax.annotation.Generated;
015    import javax.xml.bind.annotation.XmlAccessType;
016    import javax.xml.bind.annotation.XmlAccessorType;
017    import javax.xml.bind.annotation.XmlAttribute;
018    import javax.xml.bind.annotation.XmlElement;
019    import javax.xml.bind.annotation.XmlRootElement;
020    import javax.xml.bind.annotation.XmlType;
021    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
022    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
023    
024    
025    /**
026     * 
027     * 
028     *         The entity-mappings element is the root element of an mapping
029     *         file. It contains the following four types of elements:
030     * 
031     *         1. The persistence-unit-metadata element contains metadata
032     *         for the entire persistence unit. It is undefined if this element
033     *         occurs in multiple mapping files within the same persistence unit.
034     * 
035     *         2. The package, schema, catalog and access elements apply to all of
036     *         the entity, mapped-superclass and embeddable elements defined in
037     *         the same file in which they occur.
038     * 
039     *         3. The sequence-generator, table-generator, named-query,
040     *         named-native-query and sql-result-set-mapping elements are global
041     *         to the persistence unit. It is undefined to have more than one
042     *         sequence-generator or table-generator of the same name in the same
043     *         or different mapping files in a persistence unit. It is also
044     *         undefined to have more than one named-query or named-native-query
045     *         of the same name in the same or different mapping files in a
046     *         persistence unit.
047     * 
048     *         4. The entity, mapped-superclass and embeddable elements each define
049     *         the mapping information for a managed persistent class. The mapping
050     *         information contained in these elements may be complete or it may
051     *         be partial.
052     * 
053     *         
054     * 
055     * <p>Java class for anonymous complex type.
056     * 
057     * <p>The following schema fragment specifies the expected content contained within this class.
058     * 
059     * <pre>
060     * &lt;complexType>
061     *   &lt;complexContent>
062     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
063     *       &lt;sequence>
064     *         &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
065     *         &lt;element name="persistence-unit-metadata" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
066     *         &lt;element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
067     *         &lt;element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
068     *         &lt;element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
069     *         &lt;element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
070     *         &lt;element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
071     *         &lt;element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" minOccurs="0"/>
072     *         &lt;element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
073     *         &lt;element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
074     *         &lt;element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
075     *         &lt;element name="mapped-superclass" type="{http://java.sun.com/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
076     *         &lt;element name="entity" type="{http://java.sun.com/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
077     *         &lt;element name="embeddable" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
078     *       &lt;/sequence>
079     *       &lt;attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence/orm}versionType" fixed="1.0" />
080     *     &lt;/restriction>
081     *   &lt;/complexContent>
082     * &lt;/complexType>
083     * </pre>
084     * 
085     * 
086     */
087    @XmlAccessorType(XmlAccessType.FIELD)
088    @XmlType(name = "", propOrder = {
089        "description",
090        "persistenceUnitMetadata",
091        "_package",
092        "schema",
093        "catalog",
094        "access",
095        "sequenceGenerator",
096        "tableGenerator",
097        "namedQuery",
098        "namedNativeQuery",
099        "sqlResultSetMapping",
100        "mappedSuperclass",
101        "entity",
102        "embeddable"
103    })
104    @XmlRootElement(name = "entity-mappings")
105    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
106    public class EntityMappings implements Cloneable
107    {
108    
109        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
110        protected String description;
111        @XmlElement(name = "persistence-unit-metadata")
112        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
113        protected PersistenceUnitMetadata persistenceUnitMetadata;
114        @XmlElement(name = "package")
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        protected String _package;
117        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
118        protected String schema;
119        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
120        protected String catalog;
121        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
122        protected AccessType access;
123        @XmlElement(name = "sequence-generator")
124        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
125        protected List<SequenceGenerator> sequenceGenerator;
126        @XmlElement(name = "table-generator")
127        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
128        protected List<TableGenerator> tableGenerator;
129        @XmlElement(name = "named-query")
130        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
131        protected List<NamedQuery> namedQuery;
132        @XmlElement(name = "named-native-query")
133        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
134        protected List<NamedNativeQuery> namedNativeQuery;
135        @XmlElement(name = "sql-result-set-mapping")
136        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
137        protected List<SqlResultSetMapping> sqlResultSetMapping;
138        @XmlElement(name = "mapped-superclass")
139        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
140        protected List<MappedSuperclass> mappedSuperclass;
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        protected List<Entity> entity;
143        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
144        protected List<Embeddable> embeddable;
145        @XmlAttribute(required = true)
146        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
147        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
148        protected String version;
149    
150        /**
151         * Creates a new {@code EntityMappings} instance.
152         * 
153         */
154        public EntityMappings() {
155            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
156            super();
157        }
158    
159        /**
160         * Creates a new {@code EntityMappings} instance by deeply copying a given {@code EntityMappings} instance.
161         * 
162         * 
163         * @param o
164         *     The instance to copy.
165         * @throws NullPointerException
166         *     if {@code o} is {@code null}.
167         */
168        public EntityMappings(final EntityMappings o) {
169            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
170            super();
171            if (o == null) {
172                throw new NullPointerException("Cannot create a copy of 'EntityMappings' from 'null'.");
173            }
174            // CBuiltinLeafInfo: java.lang.String
175            this.description = o.getDescription();
176            // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.PersistenceUnitMetadata
177            this.persistenceUnitMetadata = ((o.getPersistenceUnitMetadata() == null)?null:o.getPersistenceUnitMetadata().clone());
178            // CBuiltinLeafInfo: java.lang.String
179            this._package = o.getPackage();
180            // CBuiltinLeafInfo: java.lang.String
181            this.schema = o.getSchema();
182            // CBuiltinLeafInfo: java.lang.String
183            this.catalog = o.getCatalog();
184            // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.AccessType
185            this.access = o.getAccess();
186            // 'SequenceGenerator' collection.
187            copySequenceGenerator(o.getSequenceGenerator(), getSequenceGenerator());
188            // 'TableGenerator' collection.
189            copyTableGenerator(o.getTableGenerator(), getTableGenerator());
190            // 'NamedQuery' collection.
191            copyNamedQuery(o.getNamedQuery(), getNamedQuery());
192            // 'NamedNativeQuery' collection.
193            copyNamedNativeQuery(o.getNamedNativeQuery(), getNamedNativeQuery());
194            // 'SqlResultSetMapping' collection.
195            copySqlResultSetMapping(o.getSqlResultSetMapping(), getSqlResultSetMapping());
196            // 'MappedSuperclass' collection.
197            copyMappedSuperclass(o.getMappedSuperclass(), getMappedSuperclass());
198            // 'Entity' collection.
199            copyEntity(o.getEntity(), getEntity());
200            // 'Embeddable' collection.
201            copyEmbeddable(o.getEmbeddable(), getEmbeddable());
202            // CBuiltinLeafInfo: java.lang.String
203            this.version = o.getVersion();
204        }
205    
206        /**
207         * Gets the value of the description property.
208         * 
209         * @return
210         *     possible object is
211         *     {@link String }
212         *     
213         */
214        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
215        public String getDescription() {
216            return description;
217        }
218    
219        /**
220         * Sets the value of the description property.
221         * 
222         * @param value
223         *     allowed object is
224         *     {@link String }
225         *     
226         */
227        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
228        public void setDescription(String value) {
229            this.description = value;
230        }
231    
232        /**
233         * Gets the value of the persistenceUnitMetadata property.
234         * 
235         * @return
236         *     possible object is
237         *     {@link PersistenceUnitMetadata }
238         *     
239         */
240        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
241        public PersistenceUnitMetadata getPersistenceUnitMetadata() {
242            return persistenceUnitMetadata;
243        }
244    
245        /**
246         * Sets the value of the persistenceUnitMetadata property.
247         * 
248         * @param value
249         *     allowed object is
250         *     {@link PersistenceUnitMetadata }
251         *     
252         */
253        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
254        public void setPersistenceUnitMetadata(PersistenceUnitMetadata value) {
255            this.persistenceUnitMetadata = value;
256        }
257    
258        /**
259         * Gets the value of the package property.
260         * 
261         * @return
262         *     possible object is
263         *     {@link String }
264         *     
265         */
266        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
267        public String getPackage() {
268            return _package;
269        }
270    
271        /**
272         * Sets the value of the package property.
273         * 
274         * @param value
275         *     allowed object is
276         *     {@link String }
277         *     
278         */
279        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
280        public void setPackage(String value) {
281            this._package = value;
282        }
283    
284        /**
285         * Gets the value of the schema property.
286         * 
287         * @return
288         *     possible object is
289         *     {@link String }
290         *     
291         */
292        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
293        public String getSchema() {
294            return schema;
295        }
296    
297        /**
298         * Sets the value of the schema property.
299         * 
300         * @param value
301         *     allowed object is
302         *     {@link String }
303         *     
304         */
305        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
306        public void setSchema(String value) {
307            this.schema = value;
308        }
309    
310        /**
311         * Gets the value of the catalog property.
312         * 
313         * @return
314         *     possible object is
315         *     {@link String }
316         *     
317         */
318        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
319        public String getCatalog() {
320            return catalog;
321        }
322    
323        /**
324         * Sets the value of the catalog property.
325         * 
326         * @param value
327         *     allowed object is
328         *     {@link String }
329         *     
330         */
331        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
332        public void setCatalog(String value) {
333            this.catalog = value;
334        }
335    
336        /**
337         * Gets the value of the access property.
338         * 
339         * @return
340         *     possible object is
341         *     {@link AccessType }
342         *     
343         */
344        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
345        public AccessType getAccess() {
346            return access;
347        }
348    
349        /**
350         * Sets the value of the access property.
351         * 
352         * @param value
353         *     allowed object is
354         *     {@link AccessType }
355         *     
356         */
357        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
358        public void setAccess(AccessType value) {
359            this.access = value;
360        }
361    
362        /**
363         * Gets the value of the sequenceGenerator property.
364         * 
365         * <p>
366         * This accessor method returns a reference to the live list,
367         * not a snapshot. Therefore any modification you make to the
368         * returned list will be present inside the JAXB object.
369         * This is why there is not a <CODE>set</CODE> method for the sequenceGenerator property.
370         * 
371         * <p>
372         * For example, to add a new item, do as follows:
373         * <pre>
374         *    getSequenceGenerator().add(newItem);
375         * </pre>
376         * 
377         * 
378         * <p>
379         * Objects of the following type(s) are allowed in the list
380         * {@link SequenceGenerator }
381         * 
382         * 
383         */
384        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
385        public List<SequenceGenerator> getSequenceGenerator() {
386            if (sequenceGenerator == null) {
387                sequenceGenerator = new ArrayList<SequenceGenerator>();
388            }
389            return this.sequenceGenerator;
390        }
391    
392        /**
393         * Gets the value of the tableGenerator property.
394         * 
395         * <p>
396         * This accessor method returns a reference to the live list,
397         * not a snapshot. Therefore any modification you make to the
398         * returned list will be present inside the JAXB object.
399         * This is why there is not a <CODE>set</CODE> method for the tableGenerator property.
400         * 
401         * <p>
402         * For example, to add a new item, do as follows:
403         * <pre>
404         *    getTableGenerator().add(newItem);
405         * </pre>
406         * 
407         * 
408         * <p>
409         * Objects of the following type(s) are allowed in the list
410         * {@link TableGenerator }
411         * 
412         * 
413         */
414        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
415        public List<TableGenerator> getTableGenerator() {
416            if (tableGenerator == null) {
417                tableGenerator = new ArrayList<TableGenerator>();
418            }
419            return this.tableGenerator;
420        }
421    
422        /**
423         * Gets the value of the namedQuery property.
424         * 
425         * <p>
426         * This accessor method returns a reference to the live list,
427         * not a snapshot. Therefore any modification you make to the
428         * returned list will be present inside the JAXB object.
429         * This is why there is not a <CODE>set</CODE> method for the namedQuery property.
430         * 
431         * <p>
432         * For example, to add a new item, do as follows:
433         * <pre>
434         *    getNamedQuery().add(newItem);
435         * </pre>
436         * 
437         * 
438         * <p>
439         * Objects of the following type(s) are allowed in the list
440         * {@link NamedQuery }
441         * 
442         * 
443         */
444        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
445        public List<NamedQuery> getNamedQuery() {
446            if (namedQuery == null) {
447                namedQuery = new ArrayList<NamedQuery>();
448            }
449            return this.namedQuery;
450        }
451    
452        /**
453         * Gets the value of the namedNativeQuery property.
454         * 
455         * <p>
456         * This accessor method returns a reference to the live list,
457         * not a snapshot. Therefore any modification you make to the
458         * returned list will be present inside the JAXB object.
459         * This is why there is not a <CODE>set</CODE> method for the namedNativeQuery property.
460         * 
461         * <p>
462         * For example, to add a new item, do as follows:
463         * <pre>
464         *    getNamedNativeQuery().add(newItem);
465         * </pre>
466         * 
467         * 
468         * <p>
469         * Objects of the following type(s) are allowed in the list
470         * {@link NamedNativeQuery }
471         * 
472         * 
473         */
474        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
475        public List<NamedNativeQuery> getNamedNativeQuery() {
476            if (namedNativeQuery == null) {
477                namedNativeQuery = new ArrayList<NamedNativeQuery>();
478            }
479            return this.namedNativeQuery;
480        }
481    
482        /**
483         * Gets the value of the sqlResultSetMapping property.
484         * 
485         * <p>
486         * This accessor method returns a reference to the live list,
487         * not a snapshot. Therefore any modification you make to the
488         * returned list will be present inside the JAXB object.
489         * This is why there is not a <CODE>set</CODE> method for the sqlResultSetMapping property.
490         * 
491         * <p>
492         * For example, to add a new item, do as follows:
493         * <pre>
494         *    getSqlResultSetMapping().add(newItem);
495         * </pre>
496         * 
497         * 
498         * <p>
499         * Objects of the following type(s) are allowed in the list
500         * {@link SqlResultSetMapping }
501         * 
502         * 
503         */
504        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
505        public List<SqlResultSetMapping> getSqlResultSetMapping() {
506            if (sqlResultSetMapping == null) {
507                sqlResultSetMapping = new ArrayList<SqlResultSetMapping>();
508            }
509            return this.sqlResultSetMapping;
510        }
511    
512        /**
513         * Gets the value of the mappedSuperclass property.
514         * 
515         * <p>
516         * This accessor method returns a reference to the live list,
517         * not a snapshot. Therefore any modification you make to the
518         * returned list will be present inside the JAXB object.
519         * This is why there is not a <CODE>set</CODE> method for the mappedSuperclass property.
520         * 
521         * <p>
522         * For example, to add a new item, do as follows:
523         * <pre>
524         *    getMappedSuperclass().add(newItem);
525         * </pre>
526         * 
527         * 
528         * <p>
529         * Objects of the following type(s) are allowed in the list
530         * {@link MappedSuperclass }
531         * 
532         * 
533         */
534        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
535        public List<MappedSuperclass> getMappedSuperclass() {
536            if (mappedSuperclass == null) {
537                mappedSuperclass = new ArrayList<MappedSuperclass>();
538            }
539            return this.mappedSuperclass;
540        }
541    
542        /**
543         * Gets the value of the entity property.
544         * 
545         * <p>
546         * This accessor method returns a reference to the live list,
547         * not a snapshot. Therefore any modification you make to the
548         * returned list will be present inside the JAXB object.
549         * This is why there is not a <CODE>set</CODE> method for the entity property.
550         * 
551         * <p>
552         * For example, to add a new item, do as follows:
553         * <pre>
554         *    getEntity().add(newItem);
555         * </pre>
556         * 
557         * 
558         * <p>
559         * Objects of the following type(s) are allowed in the list
560         * {@link Entity }
561         * 
562         * 
563         */
564        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
565        public List<Entity> getEntity() {
566            if (entity == null) {
567                entity = new ArrayList<Entity>();
568            }
569            return this.entity;
570        }
571    
572        /**
573         * Gets the value of the embeddable property.
574         * 
575         * <p>
576         * This accessor method returns a reference to the live list,
577         * not a snapshot. Therefore any modification you make to the
578         * returned list will be present inside the JAXB object.
579         * This is why there is not a <CODE>set</CODE> method for the embeddable property.
580         * 
581         * <p>
582         * For example, to add a new item, do as follows:
583         * <pre>
584         *    getEmbeddable().add(newItem);
585         * </pre>
586         * 
587         * 
588         * <p>
589         * Objects of the following type(s) are allowed in the list
590         * {@link Embeddable }
591         * 
592         * 
593         */
594        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
595        public List<Embeddable> getEmbeddable() {
596            if (embeddable == null) {
597                embeddable = new ArrayList<Embeddable>();
598            }
599            return this.embeddable;
600        }
601    
602        /**
603         * Gets the value of the version property.
604         * 
605         * @return
606         *     possible object is
607         *     {@link String }
608         *     
609         */
610        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
611        public String getVersion() {
612            if (version == null) {
613                return "1.0";
614            } else {
615                return version;
616            }
617        }
618    
619        /**
620         * Sets the value of the version property.
621         * 
622         * @param value
623         *     allowed object is
624         *     {@link String }
625         *     
626         */
627        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
628        public void setVersion(String value) {
629            this.version = value;
630        }
631    
632        /**
633         * Copies all values of property {@code SequenceGenerator} deeply.
634         * 
635         * @param target
636         *     The target to copy {@code source} to.
637         * @param source
638         *     The source to copy from.
639         * @throws NullPointerException
640         *     if {@code source} or {@code target} is {@code null}.
641         */
642        @SuppressWarnings("unchecked")
643        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
644        private static void copySequenceGenerator(final List<SequenceGenerator> source, final List<SequenceGenerator> target) {
645            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
646            if (!source.isEmpty()) {
647                for (Iterator it = source.iterator(); it.hasNext(); ) {
648                    final Object next = it.next();
649                    if (next instanceof SequenceGenerator) {
650                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.SequenceGenerator
651                        target.add(((SequenceGenerator) next).clone());
652                        continue;
653                    }
654                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
655                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'SequenceGenerator' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
656                }
657            }
658        }
659    
660        /**
661         * Copies all values of property {@code TableGenerator} deeply.
662         * 
663         * @param target
664         *     The target to copy {@code source} to.
665         * @param source
666         *     The source to copy from.
667         * @throws NullPointerException
668         *     if {@code source} or {@code target} is {@code null}.
669         */
670        @SuppressWarnings("unchecked")
671        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
672        private static void copyTableGenerator(final List<TableGenerator> source, final List<TableGenerator> target) {
673            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
674            if (!source.isEmpty()) {
675                for (Iterator it = source.iterator(); it.hasNext(); ) {
676                    final Object next = it.next();
677                    if (next instanceof TableGenerator) {
678                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.TableGenerator
679                        target.add(((TableGenerator) next).clone());
680                        continue;
681                    }
682                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
683                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'TableGenerator' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
684                }
685            }
686        }
687    
688        /**
689         * Copies all values of property {@code NamedQuery} deeply.
690         * 
691         * @param target
692         *     The target to copy {@code source} to.
693         * @param source
694         *     The source to copy from.
695         * @throws NullPointerException
696         *     if {@code source} or {@code target} is {@code null}.
697         */
698        @SuppressWarnings("unchecked")
699        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
700        private static void copyNamedQuery(final List<NamedQuery> source, final List<NamedQuery> target) {
701            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
702            if (!source.isEmpty()) {
703                for (Iterator it = source.iterator(); it.hasNext(); ) {
704                    final Object next = it.next();
705                    if (next instanceof NamedQuery) {
706                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.NamedQuery
707                        target.add(((NamedQuery) next).clone());
708                        continue;
709                    }
710                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
711                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'NamedQuery' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
712                }
713            }
714        }
715    
716        /**
717         * Copies all values of property {@code NamedNativeQuery} deeply.
718         * 
719         * @param target
720         *     The target to copy {@code source} to.
721         * @param source
722         *     The source to copy from.
723         * @throws NullPointerException
724         *     if {@code source} or {@code target} is {@code null}.
725         */
726        @SuppressWarnings("unchecked")
727        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
728        private static void copyNamedNativeQuery(final List<NamedNativeQuery> source, final List<NamedNativeQuery> target) {
729            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
730            if (!source.isEmpty()) {
731                for (Iterator it = source.iterator(); it.hasNext(); ) {
732                    final Object next = it.next();
733                    if (next instanceof NamedNativeQuery) {
734                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.NamedNativeQuery
735                        target.add(((NamedNativeQuery) next).clone());
736                        continue;
737                    }
738                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
739                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'NamedNativeQuery' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
740                }
741            }
742        }
743    
744        /**
745         * Copies all values of property {@code SqlResultSetMapping} deeply.
746         * 
747         * @param target
748         *     The target to copy {@code source} to.
749         * @param source
750         *     The source to copy from.
751         * @throws NullPointerException
752         *     if {@code source} or {@code target} is {@code null}.
753         */
754        @SuppressWarnings("unchecked")
755        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
756        private static void copySqlResultSetMapping(final List<SqlResultSetMapping> source, final List<SqlResultSetMapping> target) {
757            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
758            if (!source.isEmpty()) {
759                for (Iterator it = source.iterator(); it.hasNext(); ) {
760                    final Object next = it.next();
761                    if (next instanceof SqlResultSetMapping) {
762                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.SqlResultSetMapping
763                        target.add(((SqlResultSetMapping) next).clone());
764                        continue;
765                    }
766                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
767                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'SqlResultSetMapping' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
768                }
769            }
770        }
771    
772        /**
773         * Copies all values of property {@code MappedSuperclass} deeply.
774         * 
775         * @param target
776         *     The target to copy {@code source} to.
777         * @param source
778         *     The source to copy from.
779         * @throws NullPointerException
780         *     if {@code source} or {@code target} is {@code null}.
781         */
782        @SuppressWarnings("unchecked")
783        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
784        private static void copyMappedSuperclass(final List<MappedSuperclass> source, final List<MappedSuperclass> target) {
785            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
786            if (!source.isEmpty()) {
787                for (Iterator it = source.iterator(); it.hasNext(); ) {
788                    final Object next = it.next();
789                    if (next instanceof MappedSuperclass) {
790                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.MappedSuperclass
791                        target.add(((MappedSuperclass) next).clone());
792                        continue;
793                    }
794                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
795                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'MappedSuperclass' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
796                }
797            }
798        }
799    
800        /**
801         * Copies all values of property {@code Entity} deeply.
802         * 
803         * @param target
804         *     The target to copy {@code source} to.
805         * @param source
806         *     The source to copy from.
807         * @throws NullPointerException
808         *     if {@code source} or {@code target} is {@code null}.
809         */
810        @SuppressWarnings("unchecked")
811        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
812        private static void copyEntity(final List<Entity> source, final List<Entity> target) {
813            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
814            if (!source.isEmpty()) {
815                for (Iterator it = source.iterator(); it.hasNext(); ) {
816                    final Object next = it.next();
817                    if (next instanceof Entity) {
818                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.Entity
819                        target.add(((Entity) next).clone());
820                        continue;
821                    }
822                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
823                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Entity' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
824                }
825            }
826        }
827    
828        /**
829         * Copies all values of property {@code Embeddable} deeply.
830         * 
831         * @param target
832         *     The target to copy {@code source} to.
833         * @param source
834         *     The source to copy from.
835         * @throws NullPointerException
836         *     if {@code source} or {@code target} is {@code null}.
837         */
838        @SuppressWarnings("unchecked")
839        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
840        private static void copyEmbeddable(final List<Embeddable> source, final List<Embeddable> target) {
841            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
842            if (!source.isEmpty()) {
843                for (Iterator it = source.iterator(); it.hasNext(); ) {
844                    final Object next = it.next();
845                    if (next instanceof Embeddable) {
846                        // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.Embeddable
847                        target.add(((Embeddable) next).clone());
848                        continue;
849                    }
850                    // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
851                    throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Embeddable' of class 'net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings'."));
852                }
853            }
854        }
855    
856        /**
857         * Creates and returns a deep copy of this object.
858         * 
859         * 
860         * @return
861         *     A deep copy of this object.
862         */
863        @Override
864        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
865        public EntityMappings clone() {
866            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
867            return new EntityMappings(this);
868        }
869    
870    }