Class JaxbEntityMappings

  • All Implemented Interfaces:
    Serializable, BindableMappingDescriptor

    public class JaxbEntityMappings
    extends Object
    implements Serializable, 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>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • JaxbEntityMappings

        public JaxbEntityMappings()
    • Method Detail

      • 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
      • 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<JaxbJavaTypeRegistration> 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 Jakarta XML Binding 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 JaxbJavaTypeRegistration

        Returns:
        The value of the javaTypeRegistrations property.
      • getJdbcTypeRegistrations

        public List<JaxbJdbcTypeRegistration> 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 Jakarta XML Binding 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 JaxbJdbcTypeRegistration

        Returns:
        The value of the jdbcTypeRegistrations property.
      • getUserTypeRegistrations

        public List<JaxbUserTypeRegistration> 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 Jakarta XML Binding 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 JaxbUserTypeRegistration

        Returns:
        The value of the userTypeRegistrations property.
      • getCompositeUserTypeRegistrations

        public List<JaxbCompositeUserTypeRegistration> 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 Jakarta XML Binding 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 JaxbCompositeUserTypeRegistration

        Returns:
        The value of the compositeUserTypeRegistrations property.
      • getCollectionUserTypeRegistrations

        public List<JaxbCollectionUserTypeRegistration> 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 Jakarta XML Binding 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 JaxbCollectionUserTypeRegistration

        Returns:
        The value of the collectionUserTypeRegistrations property.
      • getConverterRegistrations

        public List<JaxbConverterRegistration> 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 Jakarta XML Binding 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 JaxbConverterRegistration

        Returns:
        The value of the converterRegistrations property.
      • getEmbeddableInstantiatorRegistrations

        public List<JaxbEmbeddableInstantiatorRegistration> 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 Jakarta XML Binding 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 JaxbEmbeddableInstantiatorRegistration

        Returns:
        The value of the embeddableInstantiatorRegistrations property.
      • getFilterDefinitions

        public List<JaxbFilterDef> 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 Jakarta XML Binding 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 JaxbFilterDef

        Returns:
        The value of the filterDefinitions property.
      • getFetchProfiles

        public List<JaxbFetchProfile> 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 Jakarta XML Binding 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 JaxbFetchProfile

        Returns:
        The value of the fetchProfiles property.
      • getSequenceGenerators

        public List<JaxbSequenceGenerator> 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 Jakarta XML Binding 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 JaxbSequenceGenerator

        Returns:
        The value of the sequenceGenerators property.
      • getTableGenerators

        public List<JaxbTableGenerator> 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 Jakarta XML Binding 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 JaxbTableGenerator

        Returns:
        The value of the tableGenerators property.
      • getGenericGenerators

        public List<JaxbGenericIdGenerator> 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 Jakarta XML Binding 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 JaxbGenericIdGenerator

        Returns:
        The value of the genericGenerators property.
      • getNamedQueries

        public List<JaxbNamedQuery> 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 Jakarta XML Binding 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 JaxbNamedQuery

        Returns:
        The value of the namedQueries property.
      • getNamedNativeQueries

        public List<JaxbNamedNativeQuery> 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 Jakarta XML Binding 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 JaxbNamedNativeQuery

        Returns:
        The value of the namedNativeQueries property.
      • getNamedProcedureQueries

        public List<JaxbNamedStoredProcedureQuery> 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 Jakarta XML Binding 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 JaxbNamedStoredProcedureQuery

        Returns:
        The value of the namedProcedureQueries property.
      • getSqlResultSetMappings

        public List<JaxbSqlResultSetMapping> 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 Jakarta XML Binding 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 JaxbSqlResultSetMapping

        Returns:
        The value of the sqlResultSetMappings property.
      • getMappedSuperclasses

        public List<JaxbMappedSuperclass> 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 Jakarta XML Binding 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 JaxbMappedSuperclass

        Returns:
        The value of the mappedSuperclasses property.
      • getEntities

        public List<JaxbEntity> 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 Jakarta XML Binding 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 JaxbEntity

        Returns:
        The value of the entities property.
      • getEmbeddables

        public List<JaxbEmbeddable> 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 Jakarta XML Binding 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 JaxbEmbeddable

        Returns:
        The value of the embeddables property.
      • getConverters

        public List<JaxbConverter> 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 Jakarta XML Binding 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 JaxbConverter

        Returns:
        The value of the converters property.
      • getHqlImports

        public List<JaxbHqlImport> 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 Jakarta XML Binding 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 JaxbHqlImport

        Returns:
        The value of the hqlImports property.
      • getDatabaseObjects

        public List<JaxbDatabaseObject> 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 Jakarta XML Binding 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 JaxbDatabaseObject

        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