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="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 jakarta.persistence.AccessType getAccess()
        Gets the value of the access property.
        Returns:
        possible object is String
      • setAccess

        public void setAccess​(jakarta.persistence.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
      • 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

      • 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

      • getSequenceGenerator

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

      • getTableGenerator

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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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

      • 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