Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbEntityMappings

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:
propOrder:description, persistenceUnitMetadata, _package, schema, catalog, access, sequenceGenerator, tableGenerator, namedQuery, namedNativeQuery, namedStoredProcedureQuery, sqlResultSetMapping, mappedSuperclass, entity, embeddable, converter
@XmlRootElement
name:entity-mappings
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.persistence.AccessType, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlRootElement, .XmlSchemaType, .XmlType, javax.xml.bind.annotation.adapters.CollapsedStringAdapter, .XmlJavaTypeAdapter

The entity-mappings element is the root element of a 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, converter, named-query, named-native-query, named-stored-procedure-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 undefined to have more than one named-query, named-native-query, sql-result-set-mapping, or named-stored-procedure-query of the same name in the same or different mapping files in a persistence unit. It is also undefined to have more than one converter for the same target type 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://xmlns.jcp.org/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://xmlns.jcp.org/xml/ns/persistence/orm}access-type" minOccurs="0"/>
        <element name="sequence-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
        <element name="table-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-native-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-stored-procedure-query" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}named-stored-procedure-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="sql-result-set-mapping" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
        <element name="mapped-superclass" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
        <element name="entity" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
        <element name="embeddable" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
        <element name="converter" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}converter" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
      <attribute name="version" use="required" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}versionType" fixed="2.2" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected String
protected AccessType
protected String
protected List<JaxbConverter>
protected String
protected List<JaxbEmbeddable>
protected List<JaxbEntity>
protected List<JaxbMappedSuperclass>
protected List<JaxbNamedNativeQuery>
protected List<JaxbNamedQuery>
protected List<JaxbNamedStoredProcedureQuery>
protected JaxbPersistenceUnitMetadata
protected String
protected List<JaxbSequenceGenerator>
protected List<JaxbSqlResultSetMapping>
protected List<JaxbTableGenerator>
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessType

Returns:

possible object is String
getAccess
()

Gets the value of the access property.

public String

Returns:

possible object is String
getCatalog
()

Gets the value of the catalog property.

public List<JaxbConverter>
getConverter()

Gets the value of the converter property.

public String

Returns:

possible object is String
getDescription
()

Gets the value of the description property.

public List<JaxbEmbeddable>
getEmbeddable()

Gets the value of the embeddable property.

public List<JaxbEntity>
getEntity()

Gets the value of the entity property.

public List<JaxbMappedSuperclass>
getMappedSuperclass()

Gets the value of the mappedSuperclass property.

public List<JaxbNamedNativeQuery>
getNamedNativeQuery()

Gets the value of the namedNativeQuery property.

public List<JaxbNamedQuery>
getNamedQuery()

Gets the value of the namedQuery property.

public List<JaxbNamedStoredProcedureQuery>
getNamedStoredProcedureQuery()

Gets the value of the namedStoredProcedureQuery property.

public String

Returns:

possible object is String
getPackage
()

Gets the value of the package property.

public JaxbPersistenceUnitMetadata

Returns:

possible object is JaxbPersistenceUnitMetadata
getPersistenceUnitMetadata
()

Gets the value of the persistenceUnitMetadata property.

public String

Returns:

possible object is String
getSchema
()

Gets the value of the schema property.

public List<JaxbSequenceGenerator>
getSequenceGenerator()

Gets the value of the sequenceGenerator property.

public List<JaxbSqlResultSetMapping>
getSqlResultSetMapping()

Gets the value of the sqlResultSetMapping property.

public List<JaxbTableGenerator>
getTableGenerator()

Gets the value of the tableGenerator property.

public String

Returns:

possible object is String
getVersion
()

Gets the value of the version property.

public void
setAccess(AccessType
allowed object is String
value
)

Sets the value of the access property.

public void
setCatalog(String
allowed object is String
value
)

Sets the value of the catalog property.

public void
setDescription(String
allowed object is String
value
)

Sets the value of the description property.

public void
setPackage(String
allowed object is String
value
)

Sets the value of the package property.

public void
setPersistenceUnitMetadata(JaxbPersistenceUnitMetadata
allowed object is JaxbPersistenceUnitMetadata
value
)

Sets the value of the persistenceUnitMetadata property.

public void
setSchema(String
allowed object is String
value
)

Sets the value of the schema property.

public void
setVersion(String
allowed object is String
value
)

Sets the value of the version property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_packageback to summary
protected String _package
Annotations
@XmlElement
name:package
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
accessback to summary
protected AccessType access
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
type:String
@XmlJavaTypeAdapter:Adapter1
@XmlSchemaType
name:token
catalogback to summary
protected String catalog
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
converterback to summary
protected List<JaxbConverter> converter
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
descriptionback to summary
protected String description
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
embeddableback to summary
protected List<JaxbEmbeddable> embeddable
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
entityback to summary
protected List<JaxbEntity> entity
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
mappedSuperclassback to summary
protected List<JaxbMappedSuperclass> mappedSuperclass
Annotations
@XmlElement
name:mapped-superclass
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
namedNativeQueryback to summary
protected List<JaxbNamedNativeQuery> namedNativeQuery
Annotations
@XmlElement
name:named-native-query
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
namedQueryback to summary
protected List<JaxbNamedQuery> namedQuery
Annotations
@XmlElement
name:named-query
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
namedStoredProcedureQueryback to summary
protected List<JaxbNamedStoredProcedureQuery> namedStoredProcedureQuery
Annotations
@XmlElement
name:named-stored-procedure-query
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
persistenceUnitMetadataback to summary
protected JaxbPersistenceUnitMetadata persistenceUnitMetadata
Annotations
@XmlElement
name:persistence-unit-metadata
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
schemaback to summary
protected String schema
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
sequenceGeneratorback to summary
protected List<JaxbSequenceGenerator> sequenceGenerator
Annotations
@XmlElement
name:sequence-generator
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
sqlResultSetMappingback to summary
protected List<JaxbSqlResultSetMapping> sqlResultSetMapping
Annotations
@XmlElement
name:sql-result-set-mapping
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
tableGeneratorback to summary
protected List<JaxbTableGenerator> tableGenerator
Annotations
@XmlElement
name:table-generator
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
versionback to summary
protected String version
Annotations
@XmlAttribute
name:version
required:true
@XmlJavaTypeAdapter:CollapsedStringAdapter

Constructor Detail

JaxbEntityMappingsback to summary
public JaxbEntityMappings()

Method Detail

getAccessback to summary
public AccessType getAccess()

Gets the value of the access property.

Returns:AccessType

possible object is String

getCatalogback to summary
public String getCatalog()

Gets the value of the catalog property.

Returns:String

possible object is String

getConverterback to summary
public List<JaxbConverter> getConverter()

Gets the value of the converter 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 converter property.

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

   getConverter().add(newItem);

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

getDescriptionback to summary
public String getDescription()

Gets the value of the description property.

Returns:String

possible object is String

getEmbeddableback to summary
public List<JaxbEmbeddable> 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 JaxbEmbeddable

getEntityback to summary
public List<JaxbEntity> 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 JaxbEntity

getMappedSuperclassback to summary
public List<JaxbMappedSuperclass> 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 JaxbMappedSuperclass

getNamedNativeQueryback to summary
public List<JaxbNamedNativeQuery> 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 JaxbNamedNativeQuery

getNamedQueryback to summary
public List<JaxbNamedQuery> 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 JaxbNamedQuery

getNamedStoredProcedureQueryback to summary
public List<JaxbNamedStoredProcedureQuery> getNamedStoredProcedureQuery()

Gets the value of the namedStoredProcedureQuery 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 namedStoredProcedureQuery property.

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

   getNamedStoredProcedureQuery().add(newItem);

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

getPackageback to summary
public String getPackage()

Gets the value of the package property.

Returns:String

possible object is String

getPersistenceUnitMetadataback to summary
public JaxbPersistenceUnitMetadata getPersistenceUnitMetadata()

Gets the value of the persistenceUnitMetadata property.

Returns:JaxbPersistenceUnitMetadata

possible object is JaxbPersistenceUnitMetadata

getSchemaback to summary
public String getSchema()

Gets the value of the schema property.

Returns:String

possible object is String

getSequenceGeneratorback to summary
public List<JaxbSequenceGenerator> 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 JaxbSequenceGenerator

getSqlResultSetMappingback to summary
public List<JaxbSqlResultSetMapping> 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 JaxbSqlResultSetMapping

getTableGeneratorback to summary
public List<JaxbTableGenerator> 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 JaxbTableGenerator

getVersionback to summary
public String getVersion()

Gets the value of the version property.

Returns:String

possible object is String

setAccessback to summary
public void setAccess(AccessType value)

Sets the value of the access property.

Parameters
value:AccessType

allowed object is String

setCatalogback to summary
public void setCatalog(String value)

Sets the value of the catalog property.

Parameters
value:String

allowed object is String

setDescriptionback to summary
public void setDescription(String value)

Sets the value of the description property.

Parameters
value:String

allowed object is String

setPackageback to summary
public void setPackage(String value)

Sets the value of the package property.

Parameters
value:String

allowed object is String

setPersistenceUnitMetadataback to summary
public void setPersistenceUnitMetadata(JaxbPersistenceUnitMetadata value)

Sets the value of the persistenceUnitMetadata property.

Parameters
value:JaxbPersistenceUnitMetadata

allowed object is JaxbPersistenceUnitMetadata

setSchemaback to summary
public void setSchema(String value)

Sets the value of the schema property.

Parameters
value:String

allowed object is String

setVersionback to summary
public void setVersion(String value)

Sets the value of the version property.

Parameters
value:String

allowed object is String