Uses of Class
org.hibernate.MappingException
Packages that use MappingException
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.This package contains the interfaces that make up the bootstrap API
for Hibernate.
Overall, this module is responsible for taking a
managed-resources and
table them into Hibernate's boot-time model.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines APIs for configuring Hibernate.
Support for
Dialect
-specific identity column handling.Support for
Dialect
-specific sequence handling.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
This package and its subpackages, especially
org.hibernate.id.enhanced
,
contain the built-in id generators, all of which implement either
IdentifierGenerator
or
PostInsertIdentifierGenerator
.Enhanced/improved versions of table and sequence based identifier generators
targeting portability and unified configuration.
A small API allowing the client of a Hibernate session to interact directly
with JDBC, using the same connection and transaction obtained by the session.
This package defines the Hibernate configuration-time mapping model.
This package abstracts persistence mechanisms for collections.
This package abstracts persistence mechanisms for entities.
Defines support for executing database stored procedures and functions and accessing their outputs.
Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for native SQL query support.
A Hibernate
Type
is a strategy for mapping a Java
property type to a JDBC type or types.-
Uses of MappingException in org.hibernate
Subclasses of MappingException in org.hibernateModifier and TypeClassDescriptionclass
An exception that occurs while reading mapping annotations.class
Raised whenever a duplicate for a certain type occurs, such as a duplicate class, table, or property name.class
Thrown when a mapping is found to be invalid.class
Indicates that an expected getter or setter method could not be found on a class.class
Indicates an attempt was made to refer to an unknown entity name or class. -
Uses of MappingException in org.hibernate.boot
Subclasses of MappingException in org.hibernate.bootModifier and TypeClassDescriptionclass
Indicates a problem parsing the mapping document at a givenOrigin
.class
Indicates a problem parsing a mapping document.class
Indicates that a mapping document could not be found at a givenOrigin
.class
Specialized exception indicating that an unsupportedorm.xml
XSD version was specified -
Uses of MappingException in org.hibernate.boot.models
Subclasses of MappingException in org.hibernate.boot.modelsModifier and TypeClassDescriptionclass
Indicates thatAccessType
could not be determinedclass
class
class
Indicates a problem resolving a member from ClassDetailsclass
Condition where an attribute indicates multiple natures -
Uses of MappingException in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that throw MappingExceptionModifier and TypeMethodDescriptionvoid
SecondPass.doSecondPass
(Map<String, PersistentClass> persistentClasses) Perform the operationPropertyData.getClassOrElementName()
Returns the returned class name itself or the element type if an arrayorg.hibernate.models.spi.TypeDetails
PropertyData.getClassOrElementType()
Returns the returned class itself or the element type if an arrayAbstractDelegatingMetadata.getIdentifierPropertyName
(String className) AbstractDelegatingMetadata.getIdentifierType
(String className) InFlightMetadataCollector.getPhysicalColumnName
(Table table, String logicalName) InFlightMetadataCollector.getPhysicalColumnName
(Table table, Identifier logicalName) PropertyData.getPropertyName()
org.hibernate.models.spi.TypeDetails
PropertyData.getPropertyType()
Return the class itselfAbstractDelegatingMetadata.getReferencedPropertyType
(String className, String propertyName) PropertyData.getTypeName()
Returns the returned class name itselfvoid
AbstractDelegatingMetadata.validate()
void
MetadataImplementor.validate()
-
Uses of MappingException in org.hibernate.cfg
Subclasses of MappingException in org.hibernate.cfgModifier and TypeClassDescriptionclass
Deprecated.Was only ever referenced in a single place, in an extremely dubious way.Methods in org.hibernate.cfg that throw MappingExceptionModifier and TypeMethodDescriptionConfiguration.addCacheableFile
(File xmlFile) Add a cacheable mapping file.Configuration.addCacheableFile
(String xmlFile) Add a cacheable mapping file.Read a mapping as an application resource using the convention that a class namedfoo.bar.Foo
is mapped by a filefoo/bar/Foo.hbm.xml
which can be resolved as a classpath resource.Configuration.addDirectory
(File dir) Read all.hbm.xml
mapping documents from a directory tree.Read mappings from a particular XML file.Read mappings from a particular XML fileConfiguration.addInputStream
(InputStream xmlInputStream) Read mappings from anInputStream
.Read all.hbm.xml
mappings from a.jar
file.Configuration.addPackage
(String packageName) Read package-level metadata.Configuration.addResource
(String resourceName) Read mappings as an application resource name, that is, using a classpath lookup, trying different class loaders in turn.Read mappings from aURL
. -
Uses of MappingException in org.hibernate.dialect.identity
Methods in org.hibernate.dialect.identity that throw MappingExceptionModifier and TypeMethodDescriptionAbstractTransactSQLIdentityColumnSupport.getIdentityColumnString
(int type) IdentityColumnSupport.getIdentityColumnString
(int type) The syntax used during DDL to define a column as being an IDENTITY of a particular type.IdentityColumnSupportImpl.getIdentityColumnString
(int type) AbstractTransactSQLIdentityColumnSupport.getIdentitySelectString
(String table, String column, int type) HANAIdentityColumnSupport.getIdentitySelectString
(String table, String column, int type) IdentityColumnSupport.getIdentitySelectString
(String table, String column, int type) Get the select command to use to retrieve the last generated IDENTITY value for a particular tableIdentityColumnSupportImpl.getIdentitySelectString
(String table, String column, int type) -
Uses of MappingException in org.hibernate.dialect.sequence
Methods in org.hibernate.dialect.sequence that throw MappingExceptionModifier and TypeMethodDescriptionMariaDBSequenceSupport.getCreateSequenceString
(String sequenceName) MariaDBSequenceSupport.getCreateSequenceString
(String sequenceName, int initialValue, int incrementSize) NoSequenceSupport.getCreateSequenceString
(String sequenceName) NoSequenceSupport.getCreateSequenceString
(String sequenceName, int initialValue, int incrementSize) default String
SequenceSupport.getCreateSequenceString
(String sequenceName) Typically dialects which support sequences can create a sequence with a single command.default String
SequenceSupport.getCreateSequenceString
(String sequenceName, int initialValue, int incrementSize) Typically dialects which support sequences can create a sequence with a single command.TiDBSequenceSupport.getCreateSequenceString
(String sequenceName, int initialValue, int incrementSize) String[]
NoSequenceSupport.getCreateSequenceStrings
(String sequenceName, int initialValue, int incrementSize) default String[]
SequenceSupport.getCreateSequenceStrings
(String sequenceName, int initialValue, int incrementSize) An optional multi-line form for databases whichSequenceSupport.supportsPooledSequences()
.NoSequenceSupport.getDropSequenceString
(String sequenceName) default String
SequenceSupport.getDropSequenceString
(String sequenceName) Typically dialects which support sequences can drop a sequence with a single command.SQLServer16SequenceSupport.getDropSequenceString
(String sequenceName) String[]
NoSequenceSupport.getDropSequenceStrings
(String sequenceName) default String[]
SequenceSupport.getDropSequenceStrings
(String sequenceName) The multiline script used to drop a sequence.NoSequenceSupport.getSelectSequenceNextValString
(String sequenceName) SequenceSupport.getSelectSequenceNextValString
(String sequenceName) Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement.ANSISequenceSupport.getSelectSequencePreviousValString
(String sequenceName) DB2iSequenceSupport.getSelectSequencePreviousValString
(String sequenceName) DB2SequenceSupport.getSelectSequencePreviousValString
(String sequenceName) DerbySequenceSupport.getSelectSequencePreviousValString
(String sequenceName) H2V1SequenceSupport.getSelectSequencePreviousValString
(String sequenceName) LegacyDB2SequenceSupport.getSelectSequencePreviousValString
(String sequenceName) Deprecated.MariaDBSequenceSupport.getSelectSequencePreviousValString
(String sequenceName) PostgreSQLSequenceSupport.getSelectSequencePreviousValString
(String sequenceName) default String
SequenceSupport.getSelectSequencePreviousValString
(String sequenceName) Generate the select expression fragment that will retrieve the previous value of a sequence as part of another (typically DML) statement.TiDBSequenceSupport.getSelectSequencePreviousValString
(String sequenceName) NoSequenceSupport.getSequenceNextValString
(String sequenceName) NoSequenceSupport.getSequenceNextValString
(String sequenceName, int increment) default String
SequenceSupport.getSequenceNextValString
(String sequenceName) Generate the appropriate select statement to to retrieve the next value of a sequence.default String
SequenceSupport.getSequenceNextValString
(String sequenceName, int increment) Generate the appropriate select statement to to retrieve the next value of a sequence.DB2iSequenceSupport.getSequencePreviousValString
(String sequenceName) LegacyDB2SequenceSupport.getSequencePreviousValString
(String sequenceName) Deprecated.default String
SequenceSupport.getSequencePreviousValString
(String sequenceName) Generate the appropriate select statement to to retrieve the previous value of a sequence.SQLServerSequenceSupport.getSequencePreviousValString
(String sequenceName) -
Uses of MappingException in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that throw MappingExceptionModifier and TypeMethodDescriptionMapping.getIdentifierPropertyName
(String className) Deprecated.SessionFactoryDelegatingImpl.getIdentifierPropertyName
(String className) Mapping.getIdentifierType
(String className) Deprecated.SessionFactoryDelegatingImpl.getIdentifierType
(String className) Mapping.getReferencedPropertyType
(String className, String propertyName) Deprecated.SessionFactoryDelegatingImpl.getReferencedPropertyType
(String className, String propertyName) @Nullable Boolean
-
Uses of MappingException in org.hibernate.id
Methods in org.hibernate.id that throw MappingExceptionModifier and TypeMethodDescriptionvoid
Assigned.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) void
Configurable.configure
(Type type, Properties params, ServiceRegistry serviceRegistry) Configure this instance, given the value of parameters specified by the user as<param>
elements.void
ForeignGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) Deprecated, for removal: This API element is subject to removal in a future version.void
IncrementGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) void
UUIDGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) Deprecated.void
UUIDHexGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) Deprecated.ExportableColumn.ValueImpl.getType()
boolean
void
ExportableColumn.ValueImpl.setTypeUsingReflection
(String className, String propertyName) -
Uses of MappingException in org.hibernate.id.enhanced
Methods in org.hibernate.id.enhanced that throw MappingExceptionModifier and TypeMethodDescriptionvoid
SequenceStyleGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) void
TableGenerator.configure
(Type type, Properties parameters, ServiceRegistry serviceRegistry) -
Uses of MappingException in org.hibernate.jdbc
Methods in org.hibernate.jdbc that throw MappingExceptionModifier and TypeMethodDescriptionvoid
Expectation.OutParameter.validate
(boolean callable) default void
Expectation.validate
(boolean callable) Check that this implementation is compatible with the kind ofPreparedStatement
it will be called with. -
Uses of MappingException in org.hibernate.mapping
Methods in org.hibernate.mapping that throw MappingExceptionModifier and TypeMethodDescriptionvoid
PersistentClass.addSubclass
(Subclass subclass) void
RootClass.addSubclass
(Subclass subclass) static void
MappingHelper.checkPropertyColumnDuplication
(Set<String> distinctColumns, List<Property> properties, String owner) void
Collection.createAllKeys()
void
Map.createAllKeys()
void
SimpleValue.createForeignKey()
void
SimpleValue.createForeignKey
(PersistentClass referencedEntity, org.hibernate.boot.model.internal.AnnotatedJoinColumns joinColumns) Component.createGenerator
(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass) SimpleValue.createGenerator
(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass) Property.getCascadeStyle()
Class<?>
Component.getComponentClass()
Array.getDefaultCollectionType()
abstract CollectionType
Collection.getDefaultCollectionType()
List.getDefaultCollectionType()
Class<?>
Array.getElementClass()
Class<?>
PersistentClass.getMappedClass()
Component.getProperty
(String propertyName) PersistentClass.getProperty
(String propertyName) Backref.getPropertyAccessStrategy
(Class clazz) IndexBackref.getPropertyAccessStrategy
(Class clazz) Property.getPropertyAccessStrategy
(Class clazz) PersistentClass.getRecursiveProperty
(String propertyPath) PersistentClass.getReferencedProperty
(String propertyPath) Given a property path, locate the appropriate referenceable property reference.default JdbcMapping
Value.getSelectableType
(Mapping factory, int index) int
Column.getSqlTypeCode
(Mapping mapping) PersistentClass.getSubclassProperty
(String propertyName) Deprecated, for removal: This API element is subject to removal in a future version.This will be removed with no replacement.Any.getType()
Any.KeyValue.getType()
Any.MetaValue.getType()
BasicValue.getType()
Collection.getType()
Component.getType()
DependantValue.getType()
ManyToOne.getType()
OneToOne.getType()
Property.getType()
Value.getType()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
ForeignKey.setReferencedTable
(Table referencedTable) void
Any.setTypeUsingReflection
(String className, String propertyName) void
BasicValue.setTypeUsingReflection
(String className, String propertyName) void
Component.setTypeUsingReflection
(String className, String propertyName) void
SimpleValue.setTypeUsingReflection
(String className, String propertyName) void
ToOne.setTypeUsingReflection
(String className, String propertyName) void
Value.setTypeUsingReflection
(String className, String propertyName) void
void
void
void
void
void
void
void
Constructors in org.hibernate.mapping that throw MappingExceptionModifierConstructorDescriptionComponent
(MetadataBuildingContext metadata, Collection collection) Component
(MetadataBuildingContext metadata, Component component) Component
(MetadataBuildingContext metadata, Join join) Component
(MetadataBuildingContext metadata, PersistentClass owner) Component
(MetadataBuildingContext metadata, Table table, PersistentClass owner) OneToMany
(MetadataBuildingContext buildingContext, PersistentClass owner) OneToOne
(MetadataBuildingContext buildingContext, Table table, PersistentClass owner) -
Uses of MappingException in org.hibernate.persister.collection
Methods in org.hibernate.persister.collection that throw MappingExceptionModifier and TypeMethodDescriptionvoid
AbstractCollectionPersister.postInstantiate()
void
CollectionPersister.postInstantiate()
Constructors in org.hibernate.persister.collection that throw MappingExceptionModifierConstructorDescriptionAbstractCollectionPersister
(Collection collectionBootDescriptor, @Nullable CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) AbstractCollectionPersister
(Collection collectionBootDescriptor, @Nullable CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) Deprecated.BasicCollectionPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) BasicCollectionPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) Deprecated.CompositeElementPropertyMapping
(String[] elementColumns, String[] elementColumnReaders, String[] elementColumnReaderTemplates, String[] elementFormulaTemplates, CompositeType compositeType, Metadata factory) Deprecated, for removal: This API element is subject to removal in a future version.OneToManyPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) OneToManyPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) Deprecated. -
Uses of MappingException in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that throw MappingExceptionModifier and TypeMethodDescriptionint
DiscriminatorType.getColumnSpan
(Mapping mapping) Deprecated, for removal: This API element is subject to removal in a future version.AbstractEntityPersister.getPropertyType
(String propertyName) Deprecated.by the supertypesEntityPersister.getPropertyType
(String propertyName) Deprecated, for removal: This API element is subject to removal in a future version.int[]
DiscriminatorType.getSqlTypeCodes
(Mapping mapping) Deprecated, for removal: This API element is subject to removal in a future version.protected void
AbstractPropertyMapping.initComponentPropertyPaths
(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) Deprecated, for removal: This API element is subject to removal in a future version.protected void
AbstractPropertyMapping.initIdentifierPropertyPaths
(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) Deprecated, for removal: This API element is subject to removal in a future version.protected void
AbstractPropertyMapping.initIdentifierPropertyPaths
(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Metadata factory) Deprecated, for removal: This API element is subject to removal in a future version.protected void
AbstractEntityPersister.initPropertyPaths
(Metadata mapping) protected void
AbstractPropertyMapping.initPropertyPaths
(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) Deprecated, for removal: This API element is subject to removal in a future version.protected void
AbstractEntityPersister.initSubclassPropertyAliasesMap
(PersistentClass model) Deprecated.Hibernate no longer uses aliases to read from result setsprotected void
AbstractEntityPersister.postConstruct
(Metadata mapping) Post-construct is a callback for AbstractEntityPersister subclasses to call after they are all done with their constructor processing.final void
AbstractEntityPersister.postInstantiate()
void
EntityPersister.postInstantiate()
Finish the initialization of this object. -
Uses of MappingException in org.hibernate.procedure
Methods in org.hibernate.procedure that throw MappingExceptionModifier and TypeMethodDescriptionProcedureCall.addSynchronizedEntityClass
(Class entityClass) ProcedureCall.addSynchronizedEntityName
(String entityName) -
Uses of MappingException in org.hibernate.query
Subclasses of MappingException in org.hibernate.queryModifier and TypeClassDescriptionclass
Indicates a request for named ResultSet mapping which could not be foundMethods in org.hibernate.query that throw MappingExceptionModifier and TypeMethodDescriptionNativeQuery.addSynchronizedEntityClass
(Class entityClass) SynchronizeableQuery.addSynchronizedEntityClass
(Class<?> entityClass) Add all query spaces associated with the entity with the given type.NativeQuery.addSynchronizedEntityName
(String entityName) SynchronizeableQuery.addSynchronizedEntityName
(String entityName) Add all query spaces associated with the entity with the given names. -
Uses of MappingException in org.hibernate.query.sql.spi
Methods in org.hibernate.query.sql.spi that throw MappingExceptionModifier and TypeMethodDescriptionNativeQueryImplementor.addSynchronizedEntityClass
(Class entityClass) NativeQueryImplementor.addSynchronizedEntityName
(String entityName) -
Uses of MappingException in org.hibernate.type
Methods in org.hibernate.type that throw MappingExceptionModifier and TypeMethodDescriptionAssociationType.getAssociatedEntityName
(SessionFactoryImplementor factory) Get the entity name of the associated entityCollectionType.getAssociatedEntityName
(SessionFactoryImplementor factory) AssociationType.getAssociatedJoinable
(SessionFactoryImplementor factory) Get the "persister" for this association - a class or collection persisterCollectionType.getAssociatedJoinable
(SessionFactoryImplementor factory) EntityType.getAssociatedJoinable
(SessionFactoryImplementor factory) Retrieves theJoinable
defining the associated entity.final int
AbstractStandardBasicType.getColumnSpan
(Mapping mapping) int
CollectionType.getColumnSpan
(Mapping session) int
ComponentType.getColumnSpan
(Mapping mapping) int
ManyToOneType.getColumnSpan
(Mapping mapping) int
MetaType.getColumnSpan
(Mapping mapping) Deprecated, for removal: This API element is subject to removal in a future version.int
OneToOneType.getColumnSpan
(Mapping session) final int
SerializableToBlobType.getColumnSpan
(Mapping mapping) int
SpecialOneToOneType.getColumnSpan
(Mapping mapping) int
Type.getColumnSpan
(Mapping mapping) How many columns are used to persist this type?final Type
CollectionType.getElementType
(SessionFactoryImplementor factory) Get the Hibernate type of the collection elementsfinal String
EntityType.getIdentifierOrUniqueKeyPropertyName
(Mapping factory) The name of the property on the associated entity to which our FK refersfinal Type
EntityType.getIdentifierOrUniqueKeyType
(Mapping factory) Determine the type of either (1) the identifier if we reference the associated entity's PK or (2) the unique key to which we refer (i.e.final int[]
AbstractStandardBasicType.getSqlTypeCodes
(Mapping mapping) int[]
AnyType.getSqlTypeCodes
(Mapping mapping) int[]
CollectionType.getSqlTypeCodes
(Mapping session) int[]
ComponentType.getSqlTypeCodes
(Mapping mapping) int[]
ManyToOneType.getSqlTypeCodes
(Mapping mapping) int[]
MetaType.getSqlTypeCodes
(Mapping mapping) Deprecated, for removal: This API element is subject to removal in a future version.int[]
OneToOneType.getSqlTypeCodes
(Mapping session) final int[]
SerializableToBlobType.getSqlTypeCodes
(Mapping mapping) int[]
SpecialOneToOneType.getSqlTypeCodes
(Mapping mapping) int[]
Type.getSqlTypeCodes
(Mapping mapping) Constructors in org.hibernate.type that throw MappingExceptionModifierConstructorDescriptionCustomType
(UserType<J> userType, String[] registrationKeys, TypeConfiguration typeConfiguration) CustomType
(UserType<J> userType, TypeConfiguration typeConfiguration)