Class JaxbEntityMappingsImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbEntityMappingsImpl
All Implemented Interfaces:
Serializable, JaxbBindableMappingDescriptor

public class JaxbEntityMappingsImpl extends Object implements Serializable, JaxbBindableMappingDescriptor
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="generic-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" use="required" type="{http://www.hibernate.org/xsd/orm/mapping}supportedVersionType" fixed="7.0" />
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

    • JaxbEntityMappingsImpl

      public JaxbEntityMappingsImpl()
  • Method Details

    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Returns:
      possible object is String
    • setDescription

      public void setDescription(String value)
      Sets the value of the description property.
      Parameters:
      value - allowed object is String
    • getPersistenceUnitMetadata

      public JaxbPersistenceUnitMetadataImpl getPersistenceUnitMetadata()
      Gets the value of the persistenceUnitMetadata property.
      Returns:
      possible object is JaxbPersistenceUnitMetadataImpl
    • setPersistenceUnitMetadata

      public void setPersistenceUnitMetadata(JaxbPersistenceUnitMetadataImpl value)
      Sets the value of the persistenceUnitMetadata property.
      Parameters:
      value - allowed object is JaxbPersistenceUnitMetadataImpl
    • getPackage

      public String getPackage()
      Gets the value of the package property.
      Returns:
      possible object is String
    • setPackage

      public void setPackage(String value)
      Sets the value of the package property.
      Parameters:
      value - allowed object is String
    • getSchema

      public String getSchema()
      Gets the value of the schema property.
      Returns:
      possible object is String
    • setSchema

      public void setSchema(String value)
      Sets the value of the schema property.
      Parameters:
      value - allowed object is String
    • getCatalog

      public String getCatalog()
      Gets the value of the catalog property.
      Returns:
      possible object is String
    • setCatalog

      public void setCatalog(String value)
      Sets the value of the catalog property.
      Parameters:
      value - allowed object is String
    • getAccess

      public AccessType getAccess()
      Gets the value of the access property.
      Returns:
      possible object is String
    • setAccess

      public void setAccess(AccessType value)
      Sets the value of the access property.
      Parameters:
      value - allowed object is String
    • getAttributeAccessor

      public String getAttributeAccessor()
      Gets the value of the attributeAccessor property.
      Returns:
      possible object is String
    • setAttributeAccessor

      public void setAttributeAccessor(String value)
      Sets the value of the attributeAccessor property.
      Parameters:
      value - allowed object is String
    • isAutoImport

      public Boolean isAutoImport()
      Gets the value of the autoImport property.
      Returns:
      possible object is Boolean
    • setAutoImport

      public void setAutoImport(Boolean value)
      Sets the value of the autoImport property.
      Parameters:
      value - allowed object is Boolean
    • getDefaultCascade

      public String getDefaultCascade()
      Gets the value of the defaultCascade property.
      Returns:
      possible object is String
    • setDefaultCascade

      public void setDefaultCascade(String value)
      Sets the value of the defaultCascade property.
      Parameters:
      value - allowed object is String
    • isDefaultLazy

      public Boolean isDefaultLazy()
      Gets the value of the defaultLazy property.
      Returns:
      possible object is Boolean
    • setDefaultLazy

      public void setDefaultLazy(Boolean value)
      Sets the value of the defaultLazy property.
      Parameters:
      value - allowed object is Boolean
    • getJavaTypeRegistrations

      public List<JaxbJavaTypeRegistrationImpl> getJavaTypeRegistrations()
      Gets the value of the javaTypeRegistrations 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 javaTypeRegistrations property.

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

       getJavaTypeRegistrations().add(newItem);
       

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

      Returns:
      The value of the javaTypeRegistrations property.
    • getJdbcTypeRegistrations

      public List<JaxbJdbcTypeRegistrationImpl> getJdbcTypeRegistrations()
      Gets the value of the jdbcTypeRegistrations 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 jdbcTypeRegistrations property.

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

       getJdbcTypeRegistrations().add(newItem);
       

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

      Returns:
      The value of the jdbcTypeRegistrations property.
    • getUserTypeRegistrations

      public List<JaxbUserTypeRegistrationImpl> getUserTypeRegistrations()
      Gets the value of the userTypeRegistrations 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 userTypeRegistrations property.

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

       getUserTypeRegistrations().add(newItem);
       

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

      Returns:
      The value of the userTypeRegistrations property.
    • getCompositeUserTypeRegistrations

      public List<JaxbCompositeUserTypeRegistrationImpl> getCompositeUserTypeRegistrations()
      Gets the value of the compositeUserTypeRegistrations 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 compositeUserTypeRegistrations property.

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

       getCompositeUserTypeRegistrations().add(newItem);
       

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

      Returns:
      The value of the compositeUserTypeRegistrations property.
    • getCollectionUserTypeRegistrations

      public List<JaxbCollectionUserTypeRegistrationImpl> getCollectionUserTypeRegistrations()
      Gets the value of the collectionUserTypeRegistrations 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 collectionUserTypeRegistrations property.

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

       getCollectionUserTypeRegistrations().add(newItem);
       

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

      Returns:
      The value of the collectionUserTypeRegistrations property.
    • getConverterRegistrations

      public List<JaxbConverterRegistrationImpl> getConverterRegistrations()
      Gets the value of the converterRegistrations 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 converterRegistrations property.

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

       getConverterRegistrations().add(newItem);
       

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

      Returns:
      The value of the converterRegistrations property.
    • getEmbeddableInstantiatorRegistrations

      public List<JaxbEmbeddableInstantiatorRegistrationImpl> getEmbeddableInstantiatorRegistrations()
      Gets the value of the embeddableInstantiatorRegistrations 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 embeddableInstantiatorRegistrations property.

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

       getEmbeddableInstantiatorRegistrations().add(newItem);
       

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

      Returns:
      The value of the embeddableInstantiatorRegistrations property.
    • getFilterDefinitions

      public List<JaxbFilterDefImpl> getFilterDefinitions()
      Gets the value of the filterDefinitions 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 filterDefinitions property.

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

       getFilterDefinitions().add(newItem);
       

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

      Returns:
      The value of the filterDefinitions property.
    • getFetchProfiles

      public List<JaxbFetchProfileImpl> getFetchProfiles()
      Gets the value of the fetchProfiles 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 fetchProfiles property.

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

       getFetchProfiles().add(newItem);
       

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

      Returns:
      The value of the fetchProfiles property.
    • getSequenceGenerators

      public List<JaxbSequenceGeneratorImpl> getSequenceGenerators()
      Gets the value of the sequenceGenerators 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 sequenceGenerators property.

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

       getSequenceGenerators().add(newItem);
       

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

      Returns:
      The value of the sequenceGenerators property.
    • getTableGenerators

      public List<JaxbTableGeneratorImpl> getTableGenerators()
      Gets the value of the tableGenerators 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 tableGenerators property.

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

       getTableGenerators().add(newItem);
       

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

      Returns:
      The value of the tableGenerators property.
    • getGenericGenerators

      public List<JaxbGenericIdGeneratorImpl> getGenericGenerators()
      Gets the value of the genericGenerators 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 genericGenerators property.

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

       getGenericGenerators().add(newItem);
       

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

      Returns:
      The value of the genericGenerators property.
    • getNamedQueries

      public List<JaxbNamedHqlQueryImpl> getNamedQueries()
      Gets the value of the namedQueries 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 namedQueries property.

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

       getNamedQueries().add(newItem);
       

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

      Returns:
      The value of the namedQueries property.
    • getNamedNativeQueries

      public List<JaxbNamedNativeQueryImpl> getNamedNativeQueries()
      Gets the value of the namedNativeQueries 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 namedNativeQueries property.

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

       getNamedNativeQueries().add(newItem);
       

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

      Returns:
      The value of the namedNativeQueries property.
    • getNamedProcedureQueries

      public List<JaxbNamedStoredProcedureQueryImpl> getNamedProcedureQueries()
      Gets the value of the namedProcedureQueries 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 namedProcedureQueries property.

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

       getNamedProcedureQueries().add(newItem);
       

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

      Returns:
      The value of the namedProcedureQueries property.
    • getSqlResultSetMappings

      public List<JaxbSqlResultSetMappingImpl> getSqlResultSetMappings()
      Gets the value of the sqlResultSetMappings 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 sqlResultSetMappings property.

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

       getSqlResultSetMappings().add(newItem);
       

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

      Returns:
      The value of the sqlResultSetMappings property.
    • getMappedSuperclasses

      public List<JaxbMappedSuperclassImpl> getMappedSuperclasses()
      Gets the value of the mappedSuperclasses 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 mappedSuperclasses property.

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

       getMappedSuperclasses().add(newItem);
       

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

      Returns:
      The value of the mappedSuperclasses property.
    • getEntities

      public List<JaxbEntityImpl> getEntities()
      Gets the value of the entities 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 entities property.

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

       getEntities().add(newItem);
       

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

      Returns:
      The value of the entities property.
    • getEmbeddables

      public List<JaxbEmbeddableImpl> getEmbeddables()
      Gets the value of the embeddables 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 embeddables property.

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

       getEmbeddables().add(newItem);
       

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

      Returns:
      The value of the embeddables property.
    • getConverters

      public List<JaxbConverterImpl> getConverters()
      Gets the value of the converters 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 converters property.

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

       getConverters().add(newItem);
       

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

      Returns:
      The value of the converters property.
    • getHqlImports

      public List<JaxbHqlImportImpl> getHqlImports()
      Gets the value of the hqlImports 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 hqlImports property.

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

       getHqlImports().add(newItem);
       

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

      Returns:
      The value of the hqlImports property.
    • getDatabaseObjects

      public List<JaxbDatabaseObjectImpl> getDatabaseObjects()
      Gets the value of the databaseObjects 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 databaseObjects property.

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

       getDatabaseObjects().add(newItem);
       

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

      Returns:
      The value of the databaseObjects property.
    • getVersion

      public String getVersion()
      Gets the value of the version property.
      Returns:
      possible object is String
    • setVersion

      public void setVersion(String value)
      Sets the value of the version property.
      Parameters:
      value - allowed object is String