Hibernate Core errors

An object-relational mapping tool for Java

http://hibernate.org/
Solution coverage:
Summary coverage:

Top patterns

  1. Using mixed field-based and process-based access strategies
    No solution
  2. Using same @Column name more than once while mapping columns to entity properties

    Please validate column names in your generated SQL query or on direct and joined entities

    For more information see this

  3. Improper mapping

    This blog post covers the most frequest cases.


DescriptionException TypeEntry MethodWeb pages

Using mixed field-based and process-based access strategies

org.hibernate.MappingException
org.hibernate.mapping.SimpleValue.getType
143Web pages
MappingExceptionSimpleValue.getType143

Using same @Column name more than once while mapping columns to entity properties

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.checkColumnDuplication
45Web pages
1Solution
MappingExceptionPersistentClass.checkColumnDuplication45

Improper mapping

org.hibernate.HibernateException
org.hibernate.mapping.Table.validateColumns
44Web pages
1Solution
HibernateExceptionTable.validateColumns44

ForeignKey.alignColumns() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.ForeignKey.alignColumns
30Web pages
MappingExceptionForeignKey.alignColumns30

Property.getSetter() has thrown a PropertyNotFoundException

org.hibernate.PropertyNotFoundException
2 frames hidden
org.hibernate.mapping.Property.getSetter
11Web pages
PropertyNotFoundExceptionProperty.getSetter11

PersistentClass.checkPropertyDuplication() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.checkPropertyDuplication
9Web pages
MappingExceptionPersistentClass.checkPropertyDuplication9

PersistentClass.getRecursiveProperty() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.getRecursiveProperty
8Web pages
MappingExceptionPersistentClass.getRecursiveProperty8

RootClass.validate() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.mapping.RootClass.validate
7Web pages
MappingExceptionRootClass.validate7

Collection.checkColumnDuplication() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.mapping.Collection.checkColumnDuplication
7Web pages
MappingExceptionCollection.checkColumnDuplication7

PersistentClass.createPrimaryKey() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.mapping.PersistentClass.createPrimaryKey
6Web pages
NullPointerExceptionPersistentClass.createPrimaryKey6

PersistentClass.getMappedClass() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.getMappedClass
6Web pages
MappingExceptionPersistentClass.getMappedClass6

SimpleValue.createIdentifierGenerator() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.mapping.SimpleValue.createIdentifierGenerator
5Web pages
MappingExceptionSimpleValue.createIdentifierGenerator5

Table.<init>() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.hibernate.mapping.Table.<init>
5Web pages
NoClassDefFoundErrorTable.<init>5

RootClass.validate() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.mapping.RootClass.validate
4Web pages
MappingExceptionRootClass.validate4

PersistentClass.getMappedClass() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.mapping.PersistentClass.getMappedClass
3Web pages
NullPointerExceptionPersistentClass.getMappedClass3

Component.getComponentClass() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.Component.getComponentClass
2Web pages
MappingExceptionComponent.getComponentClass2

Table$ForeignKeyKey.equals() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.mapping.Table$ForeignKeyKey.equals
2Web pages
NullPointerExceptionTable$ForeignKeyKey.equals2

ForeignKey.alignColumns() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.mapping.ForeignKey.alignColumns
2Web pages
NullPointerExceptionForeignKey.alignColumns2

PersistentClass.getProperty() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.getProperty
2Web pages
MappingExceptionPersistentClass.getProperty2
Package namePatterns foundSolution coverageSummary coverage
org.hibernate.cfg768
org.hibernate.internal718
org.hibernate.impl443
org.hibernate.loader354
org.hibernate.engine.jdbc.internal352
org.hibernate.jdbc212
org.hibernate.persister.entity183
org.hibernate.event.internal173
org.hibernate.type143
org.hibernate.event.def141
org.hibernate.transaction114
org.hibernate.hql.internal.antlr88
org.hibernate.engine.jdbc.connections.internal83
org.hibernate.engine80
org.hibernate.service.internal77
org.hibernate.engine.internal76
org.hibernate.engine.jdbc.batch.internal73
org.hibernate.connection67
org.hibernate.tool.hbm2ddl64
org.hibernate.mapping63
org.hibernate.collection.internal61
org.hibernate.engine.spi55
org.hibernate.engine.query.spi55
org.hibernate.boot.internal54
org.hibernate.hql.internal.ast52
org.hibernate.collection48
org.hibernate.engine.jdbc.spi45
org.hibernate.tuple.entity44
org.hibernate.engine.transaction.spi44
org.hibernate.engine.jdbc.internal.proxy43
org.hibernate.boot.model.process.spi41
org.hibernate.resource.jdbc.internal39
org.hibernate.engine.transaction.internal38
org.hibernate.tool.schema.internal36
org.hibernate.action.internal35
org.hibernate.id.insert34
org.hibernate.util31
org.hibernate.property31
org.hibernate.query.internal30
org.hibernate.hql.ast29
org.hibernate.cfg.beanvalidation26
org.hibernate.hql.internal.ast.tree25
org.hibernate.cfg.annotations24
org.hibernate.engine.query23
org.hibernate.engine.jdbc.env.internal22
org.hibernate.id21
org.hibernate.loader.criteria21
org.hibernate.exception.internal20
org.hibernate.engine.transaction.synchronization.internal19
org.hibernate.tool.schema.internal.exec19
Package nameClass namePatterns foundSolution coverageSummary coverage
org.hibernate.mappingPersistentClass16
org.hibernate.mappingSimpleValue13
org.hibernate.mappingProperty7
org.hibernate.mappingComponent6
org.hibernate.mappingRootClass6
org.hibernate.mappingTable5
org.hibernate.mappingForeignKey3
org.hibernate.mappingCollection3
org.hibernate.mappingColumn2
org.hibernate.mappingJoinedSubclass1
org.hibernate.mappingTable$ForeignKeyKey1
Package nameClass nameMethod namePatterns foundSolution coverage
org.hibernate.mappingRootClassvalidate6
org.hibernate.mappingPersistentClassgetMappedClass5
org.hibernate.mappingSimpleValuecreateIdentifierGenerator5
org.hibernate.mappingSimpleValuesetTypeUsingReflection4
org.hibernate.mappingComponentgetType4
org.hibernate.mappingSimpleValueisValid3
org.hibernate.mappingPropertygetGetter3
org.hibernate.mappingForeignKeyalignColumns3
org.hibernate.mappingPersistentClassgetReferencedProperty2
org.hibernate.mappingPersistentClassvalidate2
org.hibernate.mappingPropertygetSetter2
org.hibernate.mappingComponentgetComponentClass2
org.hibernate.mappingCollectionvalidate2
org.hibernate.mappingPersistentClassgetProperty2
org.hibernate.mappingPropertyisValid2
org.hibernate.mappingTablesqlCreateString2
org.hibernate.mappingTable$ForeignKeyKeyequals1
org.hibernate.mappingPersistentClasscheckPropertyColumnDuplication1
org.hibernate.mappingCollectioncheckColumnDuplication1
org.hibernate.mappingTable<init>1
org.hibernate.mappingColumngetSqlType1
org.hibernate.mappingColumngetSqlTypeCode1
org.hibernate.mappingPersistentClassgetRecursiveProperty1
org.hibernate.mappingTablesqlAlterStrings1
org.hibernate.mappingJoinedSubclassvalidate1
org.hibernate.mappingPersistentClasscreatePrimaryKey1
org.hibernate.mappingSimpleValuegetType1
org.hibernate.mappingPersistentClasscheckPropertyDuplication1
org.hibernate.mappingPersistentClasscheckColumnDuplication1
org.hibernate.mappingTablevalidateColumns1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.hibernate.mappingRootClassvalidateMappingException6
org.hibernate.mappingSimpleValuecreateIdentifierGeneratorMappingException4
org.hibernate.mappingSimpleValueisValidMappingException3
org.hibernate.mappingPropertygetGetterPropertyNotFoundException3
org.hibernate.mappingSimpleValuesetTypeUsingReflectionMappingException3
org.hibernate.mappingComponentgetTypeMappingException3
org.hibernate.mappingForeignKeyalignColumnsMappingException2
org.hibernate.mappingTablesqlCreateStringMappingException2
org.hibernate.mappingPersistentClassgetMappedClassClassNotFoundException2
org.hibernate.mappingPersistentClassgetReferencedPropertyMappingException2
org.hibernate.mappingCollectionvalidateMappingException2
org.hibernate.mappingPersistentClassvalidateMappingException2
org.hibernate.mappingPersistentClassgetMappedClassMappingException2
org.hibernate.mappingPersistentClassgetPropertyMappingException2
org.hibernate.mappingComponentgetComponentClassClassNotFoundException1
org.hibernate.mappingPropertygetSetterAccessControlException1
org.hibernate.mappingPersistentClassgetMappedClassNullPointerException1
org.hibernate.mappingComponentgetTypeHibernateException1
org.hibernate.mappingPersistentClassgetRecursivePropertyMappingException1
org.hibernate.mappingPersistentClasscheckPropertyColumnDuplicationMappingException1
org.hibernate.mappingPersistentClasscreatePrimaryKeyNullPointerException1
org.hibernate.mappingTablevalidateColumnsHibernateException1
org.hibernate.mappingColumngetSqlTypeMappingException1
org.hibernate.mappingSimpleValuecreateIdentifierGeneratorNoClassDefFoundError1
org.hibernate.mappingPropertyisValidAbstractMethodError1
org.hibernate.mappingPropertyisValidMappingException1
org.hibernate.mappingJoinedSubclassvalidateMappingException1
org.hibernate.mappingPersistentClasscheckColumnDuplicationMappingException1
org.hibernate.mappingTable<init>NoClassDefFoundError1
org.hibernate.mappingComponentgetComponentClassMappingException1
org.hibernate.mappingPropertygetSetterPropertyNotFoundException1
org.hibernate.mappingSimpleValuegetTypeMappingException1
org.hibernate.mappingSimpleValuesetTypeUsingReflectionPropertyNotFoundException1
org.hibernate.mappingTable$ForeignKeyKeyequalsNullPointerException1
org.hibernate.mappingForeignKeyalignColumnsNullPointerException1
org.hibernate.mappingColumngetSqlTypeCodeMappingException1
org.hibernate.mappingTablesqlAlterStringsMappingException1
org.hibernate.mappingPersistentClasscheckPropertyDuplicationMappingException1
org.hibernate.mappingCollectioncheckColumnDuplicationMappingException1