net.sourceforge.jpaxjc.ns.persistence.orm
Class EntityMappings

java.lang.Object
  extended by net.sourceforge.jpaxjc.ns.persistence.orm.EntityMappings
All Implemented Interfaces:
Cloneable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class EntityMappings
extends Object
implements Cloneable

The entity-mappings element is the root element of an mapping file. It contains the following four types of elements: 1. The persistence-unit-metadata element contains metadata for the entire persistence unit. It is undefined if this element occurs in multiple mapping files within the same persistence unit. 2. The package, schema, catalog and access elements apply to all of the entity, mapped-superclass and embeddable elements defined in the same file in which they occur. 3. The sequence-generator, table-generator, named-query, named-native-query and sql-result-set-mapping elements are global to the persistence unit. It is undefined to have more than one sequence-generator or table-generator of the same name in the same or different mapping files in a persistence unit. It is also undefined to have more than one named-query or named-native-query of the same name in the same or different mapping files in a persistence unit. 4. The entity, mapped-superclass and embeddable elements each define the mapping information for a managed persistent class. The mapping information contained in these elements may be complete or it may be partial.

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <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="persistence-unit-metadata" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
         <element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
         <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
         <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" minOccurs="0"/>
         <element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
         <element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
         <element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
         <element name="mapped-superclass" type="{http://java.sun.com/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
         <element name="entity" type="{http://java.sun.com/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
         <element name="embeddable" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence/orm}versionType" fixed="1.0" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String _package
           
protected  AccessType access
           
protected  String catalog
           
protected  String description
           
protected  List<Embeddable> embeddable
           
protected  List<Entity> entity
           
protected  List<MappedSuperclass> mappedSuperclass
           
protected  List<NamedNativeQuery> namedNativeQuery
           
protected  List<NamedQuery> namedQuery
           
protected  PersistenceUnitMetadata persistenceUnitMetadata
           
protected  String schema
           
protected  List<SequenceGenerator> sequenceGenerator
           
protected  List<SqlResultSetMapping> sqlResultSetMapping
           
protected  List<TableGenerator> tableGenerator
           
protected  String version
           
 
Constructor Summary
EntityMappings()
          Creates a new EntityMappings instance.
EntityMappings(EntityMappings o)
          Creates a new EntityMappings instance by deeply copying a given EntityMappings instance.
 
Method Summary
 EntityMappings clone()
          Creates and returns a deep copy of this object.
 AccessType getAccess()
          Gets the value of the access property.
 String getCatalog()
          Gets the value of the catalog property.
 String getDescription()
          Gets the value of the description property.
 List<Embeddable> getEmbeddable()
          Gets the value of the embeddable property.
 List<Entity> getEntity()
          Gets the value of the entity property.
 List<MappedSuperclass> getMappedSuperclass()
          Gets the value of the mappedSuperclass property.
 List<NamedNativeQuery> getNamedNativeQuery()
          Gets the value of the namedNativeQuery property.
 List<NamedQuery> getNamedQuery()
          Gets the value of the namedQuery property.
 String getPackage()
          Gets the value of the package property.
 PersistenceUnitMetadata getPersistenceUnitMetadata()
          Gets the value of the persistenceUnitMetadata property.
 String getSchema()
          Gets the value of the schema property.
 List<SequenceGenerator> getSequenceGenerator()
          Gets the value of the sequenceGenerator property.
 List<SqlResultSetMapping> getSqlResultSetMapping()
          Gets the value of the sqlResultSetMapping property.
 List<TableGenerator> getTableGenerator()
          Gets the value of the tableGenerator property.
 String getVersion()
          Gets the value of the version property.
 void setAccess(AccessType value)
          Sets the value of the access property.
 void setCatalog(String value)
          Sets the value of the catalog property.
 void setDescription(String value)
          Sets the value of the description property.
 void setPackage(String value)
          Sets the value of the package property.
 void setPersistenceUnitMetadata(PersistenceUnitMetadata value)
          Sets the value of the persistenceUnitMetadata property.
 void setSchema(String value)
          Sets the value of the schema property.
 void setVersion(String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String description

persistenceUnitMetadata

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected PersistenceUnitMetadata persistenceUnitMetadata

_package

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String _package

schema

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String schema

catalog

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String catalog

access

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected AccessType access

sequenceGenerator

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<SequenceGenerator> sequenceGenerator

tableGenerator

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<TableGenerator> tableGenerator

namedQuery

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<NamedQuery> namedQuery

namedNativeQuery

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<NamedNativeQuery> namedNativeQuery

sqlResultSetMapping

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<SqlResultSetMapping> sqlResultSetMapping

mappedSuperclass

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<MappedSuperclass> mappedSuperclass

entity

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Entity> entity

embeddable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Embeddable> embeddable

version

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String version
Constructor Detail

EntityMappings

public EntityMappings()
Creates a new EntityMappings instance.


EntityMappings

public EntityMappings(EntityMappings o)
Creates a new EntityMappings instance by deeply copying a given EntityMappings instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getDescription

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getPersistenceUnitMetadata

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public PersistenceUnitMetadata getPersistenceUnitMetadata()
Gets the value of the persistenceUnitMetadata property.

Returns:
possible object is PersistenceUnitMetadata

setPersistenceUnitMetadata

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setPersistenceUnitMetadata(PersistenceUnitMetadata value)
Sets the value of the persistenceUnitMetadata property.

Parameters:
value - allowed object is PersistenceUnitMetadata

getPackage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getPackage()
Gets the value of the package property.

Returns:
possible object is String

setPackage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setPackage(String value)
Sets the value of the package property.

Parameters:
value - allowed object is String

getSchema

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getSchema()
Gets the value of the schema property.

Returns:
possible object is String

setSchema

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setSchema(String value)
Sets the value of the schema property.

Parameters:
value - allowed object is String

getCatalog

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getCatalog()
Gets the value of the catalog property.

Returns:
possible object is String

setCatalog

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setCatalog(String value)
Sets the value of the catalog property.

Parameters:
value - allowed object is String

getAccess

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public AccessType getAccess()
Gets the value of the access property.

Returns:
possible object is AccessType

setAccess

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setAccess(AccessType value)
Sets the value of the access property.

Parameters:
value - allowed object is AccessType

getSequenceGenerator

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<SequenceGenerator> getSequenceGenerator()
Gets the value of the sequenceGenerator property.

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 sequenceGenerator property.

For example, to add a new item, do as follows:

    getSequenceGenerator().add(newItem);
 

Objects of the following type(s) are allowed in the list SequenceGenerator


getTableGenerator

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<TableGenerator> getTableGenerator()
Gets the value of the tableGenerator property.

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 tableGenerator property.

For example, to add a new item, do as follows:

    getTableGenerator().add(newItem);
 

Objects of the following type(s) are allowed in the list TableGenerator


getNamedQuery

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<NamedQuery> getNamedQuery()
Gets the value of the namedQuery property.

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 namedQuery property.

For example, to add a new item, do as follows:

    getNamedQuery().add(newItem);
 

Objects of the following type(s) are allowed in the list NamedQuery


getNamedNativeQuery

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<NamedNativeQuery> getNamedNativeQuery()
Gets the value of the namedNativeQuery property.

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 namedNativeQuery property.

For example, to add a new item, do as follows:

    getNamedNativeQuery().add(newItem);
 

Objects of the following type(s) are allowed in the list NamedNativeQuery


getSqlResultSetMapping

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<SqlResultSetMapping> getSqlResultSetMapping()
Gets the value of the sqlResultSetMapping property.

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 sqlResultSetMapping property.

For example, to add a new item, do as follows:

    getSqlResultSetMapping().add(newItem);
 

Objects of the following type(s) are allowed in the list SqlResultSetMapping


getMappedSuperclass

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<MappedSuperclass> getMappedSuperclass()
Gets the value of the mappedSuperclass property.

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 mappedSuperclass property.

For example, to add a new item, do as follows:

    getMappedSuperclass().add(newItem);
 

Objects of the following type(s) are allowed in the list MappedSuperclass


getEntity

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Entity> getEntity()
Gets the value of the entity property.

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 entity property.

For example, to add a new item, do as follows:

    getEntity().add(newItem);
 

Objects of the following type(s) are allowed in the list Entity


getEmbeddable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Embeddable> getEmbeddable()
Gets the value of the embeddable property.

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 embeddable property.

For example, to add a new item, do as follows:

    getEmbeddable().add(newItem);
 

Objects of the following type(s) are allowed in the list Embeddable


getVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setVersion(String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public EntityMappings clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class Object
Returns:
A deep copy of this object.


Copyright © 2009-2010 The JPA-XJC Community. All Rights Reserved.