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

public Class JaxbEntityMappings

extends Object
implements Serializable, BindableMappingDescriptor
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.spi.BindableMappingDescriptor, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:
propOrder:description, persistenceUnitMetadata, _package, schema, catalog, access, attributeAccessor, autoImport, defaultCascade, defaultLazy, javaTypeRegistrations, jdbcTypeRegistrations, userTypeRegistrations, compositeUserTypeRegistrations, collectionUserTypeRegistrations, converterRegistrations, embeddableInstantiatorRegistrations, filterDefinitions, fetchProfiles, sequenceGenerators, tableGenerators, genericGenerators, namedQueries, namedNativeQueries, namedProcedureQueries, sqlResultSetMappings, mappedSuperclasses, entities, embeddables, converters, hqlImports, databaseObjects
@XmlRootElement
name:entity-mappings
namespace:http://www.hibernate.org/xsd/orm/mapping
Imports
java.io.Serializable, java.util.ArrayList, .List, jakarta.persistence.AccessType, jakarta.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlRootElement, .XmlSchemaType, .XmlType, jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter, .XmlJavaTypeAdapter, org.hibernate.boot.jaxb.spi.BindableMappingDescriptor

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://www.hibernate.org/xsd/orm/mapping}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"/>
        <choice minOccurs="0">
          <element name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type"/>
          <element name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string"/>
        </choice>
        <element name="auto-import" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
        <element name="default-cascade" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="default-lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
        <element name="java-type" type="{http://www.hibernate.org/xsd/orm/mapping}java-type-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="jdbc-type" type="{http://www.hibernate.org/xsd/orm/mapping}jdbc-type-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="user-type" type="{http://www.hibernate.org/xsd/orm/mapping}user-type-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="composite-user-type" type="{http://www.hibernate.org/xsd/orm/mapping}composite-user-type-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="collection-user-type" type="{http://www.hibernate.org/xsd/orm/mapping}collection-user-type-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="conversion" type="{http://www.hibernate.org/xsd/orm/mapping}converter-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="embeddable-instantiator" type="{http://www.hibernate.org/xsd/orm/mapping}embeddable-instantiator-registration" maxOccurs="unbounded" minOccurs="0"/>
        <element name="filter-def" type="{http://www.hibernate.org/xsd/orm/mapping}filter-def" maxOccurs="unbounded" minOccurs="0"/>
        <element name="fetch-profile" type="{http://www.hibernate.org/xsd/orm/mapping}fetch-profile" maxOccurs="unbounded" minOccurs="0"/>
        <element name="sequence-generator" type="{http://www.hibernate.org/xsd/orm/mapping}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
        <element name="table-generator" type="{http://www.hibernate.org/xsd/orm/mapping}table-generator" maxOccurs="unbounded" minOccurs="0"/>
        <element name="identifier-generator" type="{http://www.hibernate.org/xsd/orm/mapping}generic-id-generator" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-native-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="named-stored-procedure-query" type="{http://www.hibernate.org/xsd/orm/mapping}named-stored-procedure-query" maxOccurs="unbounded" minOccurs="0"/>
        <element name="sql-result-set-mapping" type="{http://www.hibernate.org/xsd/orm/mapping}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
        <element name="mapped-superclass" type="{http://www.hibernate.org/xsd/orm/mapping}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
        <element name="entity" type="{http://www.hibernate.org/xsd/orm/mapping}entity" maxOccurs="unbounded" minOccurs="0"/>
        <element name="embeddable" type="{http://www.hibernate.org/xsd/orm/mapping}embeddable" maxOccurs="unbounded" minOccurs="0"/>
        <element name="converter" type="{http://www.hibernate.org/xsd/orm/mapping}converter" maxOccurs="unbounded" minOccurs="0"/>
        <element name="import" type="{http://www.hibernate.org/xsd/orm/mapping}hql-import" maxOccurs="unbounded" minOccurs="0"/>
        <element name="database-object" type="{http://www.hibernate.org/xsd/orm/mapping}database-object" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
      <attribute name="version" type="{http://www.hibernate.org/xsd/orm/mapping}supportedVersionType" default="3.1" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected String
protected AccessType
protected String
protected Boolean
protected String
protected List<JaxbCollectionUserTypeRegistration>
protected List<JaxbCompositeUserTypeRegistration>
protected List<JaxbConverterRegistration>
protected List<JaxbConverter>
protected List<JaxbDatabaseObject>
protected String
protected Boolean
protected String
protected List<JaxbEmbeddableInstantiatorRegistration>
protected List<JaxbEmbeddable>
protected List<JaxbEntity>
protected List<JaxbFetchProfile>
protected List<JaxbFilterDef>
protected List<JaxbGenericIdGenerator>
protected List<JaxbHqlImport>
protected List<JaxbJavaTypeRegistration>
protected List<JaxbJdbcTypeRegistration>
protected List<JaxbMappedSuperclass>
protected List<JaxbNamedNativeQuery>
protected List<JaxbNamedStoredProcedureQuery>
protected List<JaxbNamedQuery>
protected JaxbPersistenceUnitMetadata
protected String
protected List<JaxbSequenceGenerator>
protected List<JaxbSqlResultSetMapping>
protected List<JaxbTableGenerator>
protected List<JaxbUserTypeRegistration>
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
getAttributeAccessor
()

Gets the value of the attributeAccessor property.

public String

Returns:

possible object is String
getCatalog
()

Gets the value of the catalog property.

public List<JaxbCollectionUserTypeRegistration>

Returns:

The value of the collectionUserTypeRegistrations property.
getCollectionUserTypeRegistrations
()

Gets the value of the collectionUserTypeRegistrations property.

public List<JaxbCompositeUserTypeRegistration>

Returns:

The value of the compositeUserTypeRegistrations property.
getCompositeUserTypeRegistrations
()

Gets the value of the compositeUserTypeRegistrations property.

public List<JaxbConverterRegistration>

Returns:

The value of the converterRegistrations property.
getConverterRegistrations
()

Gets the value of the converterRegistrations property.

public List<JaxbConverter>

Returns:

The value of the converters property.
getConverters
()

Gets the value of the converters property.

public List<JaxbDatabaseObject>

Returns:

The value of the databaseObjects property.
getDatabaseObjects
()

Gets the value of the databaseObjects property.

public String

Returns:

possible object is String
getDefaultCascade
()

Gets the value of the defaultCascade property.

public String

Returns:

possible object is String
getDescription
()

Gets the value of the description property.

public List<JaxbEmbeddableInstantiatorRegistration>

Returns:

The value of the embeddableInstantiatorRegistrations property.
getEmbeddableInstantiatorRegistrations
()

Gets the value of the embeddableInstantiatorRegistrations property.

public List<JaxbEmbeddable>

Returns:

The value of the embeddables property.
getEmbeddables
()

Gets the value of the embeddables property.

public List<JaxbEntity>

Returns:

The value of the entities property.
getEntities
()

Gets the value of the entities property.

public List<JaxbFetchProfile>

Returns:

The value of the fetchProfiles property.
getFetchProfiles
()

Gets the value of the fetchProfiles property.

public List<JaxbFilterDef>

Returns:

The value of the filterDefinitions property.
getFilterDefinitions
()

Gets the value of the filterDefinitions property.

public List<JaxbGenericIdGenerator>

Returns:

The value of the genericGenerators property.
getGenericGenerators
()

Gets the value of the genericGenerators property.

public List<JaxbHqlImport>

Returns:

The value of the hqlImports property.
getHqlImports
()

Gets the value of the hqlImports property.

public List<JaxbJavaTypeRegistration>

Returns:

The value of the javaTypeRegistrations property.
getJavaTypeRegistrations
()

Gets the value of the javaTypeRegistrations property.

public List<JaxbJdbcTypeRegistration>

Returns:

The value of the jdbcTypeRegistrations property.
getJdbcTypeRegistrations
()

Gets the value of the jdbcTypeRegistrations property.

public List<JaxbMappedSuperclass>

Returns:

The value of the mappedSuperclasses property.
getMappedSuperclasses
()

Gets the value of the mappedSuperclasses property.

public List<JaxbNamedNativeQuery>

Returns:

The value of the namedNativeQueries property.
getNamedNativeQueries
()

Gets the value of the namedNativeQueries property.

public List<JaxbNamedStoredProcedureQuery>

Returns:

The value of the namedProcedureQueries property.
getNamedProcedureQueries
()

Gets the value of the namedProcedureQueries property.

public List<JaxbNamedQuery>

Returns:

The value of the namedQueries property.
getNamedQueries
()

Gets the value of the namedQueries 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>

Returns:

The value of the sequenceGenerators property.
getSequenceGenerators
()

Gets the value of the sequenceGenerators property.

public List<JaxbSqlResultSetMapping>

Returns:

The value of the sqlResultSetMappings property.
getSqlResultSetMappings
()

Gets the value of the sqlResultSetMappings property.

public List<JaxbTableGenerator>

Returns:

The value of the tableGenerators property.
getTableGenerators
()

Gets the value of the tableGenerators property.

public List<JaxbUserTypeRegistration>

Returns:

The value of the userTypeRegistrations property.
getUserTypeRegistrations
()

Gets the value of the userTypeRegistrations property.

public String

Returns:

possible object is String
getVersion
()

Gets the value of the version property.

public Boolean

Returns:

possible object is Boolean
isAutoImport
()

Gets the value of the autoImport property.

public Boolean

Returns:

possible object is Boolean
isDefaultLazy
()

Gets the value of the defaultLazy property.

public void
setAccess(AccessType
allowed object is String
value
)

Sets the value of the access property.

public void
setAttributeAccessor(String
allowed object is String
value
)

Sets the value of the attributeAccessor property.

public void
setAutoImport(Boolean
allowed object is Boolean
value
)

Sets the value of the autoImport property.

public void
setCatalog(String
allowed object is String
value
)

Sets the value of the catalog property.

public void
setDefaultCascade(String
allowed object is String
value
)

Sets the value of the defaultCascade property.

public void
setDefaultLazy(Boolean
allowed object is Boolean
value
)

Sets the value of the defaultLazy 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