There are several reasons as follows:
1
1. The HBM file association in spring is not configured well.
2. The fields in the HBM file are missing.
Solution:
1. Add fully qualified domain name when writing HQL (not recommended)
2. Configure HBM Association in spring (20 has been like this for several times)
in this paper, we introduce a new method to configure HBM Association in spring
Read More:
- ognl.MethodFailedException: Method “setId” failed for object Itemer/org.springframework.orm.hibernat
- Cannot resolve plugin org.springframework .boot:xxx
- Solution: regarding c2039, XXX is not a member of XXX
- nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property
- How to Fix error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarE
- Mapped Statements collection does not contain value for XXXX
- Solution in idea java.lang.ClassNotFoundException : org.springframework.web . context.ContextLoaderListener
- org.hibernate.MappingException: invalid override definition
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- Spring nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
- Error processing condition on org.springframework.boot . autoconfigure.context.Property Error report solution
- Spring security failed to log in, error: there is no passwordencoder mapped for the ID “null”
- org.springframework.dao.InvalidDataAccessApiUsageException: Bean object must not be null; nested exc
- Org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: the wildcard matching is comprehensive, but the declaration of element XX: XX XX cannot be found
- When error: XXX does not name a type XXX is prompted in QT
- Idea error: (4, 46) Java: package org.springframework.boot . autoconfigure does not exist problem solving
- Unable to read scheme document‘ http://www.springframework.org/schema/spring-context.xsd The solution to the problem
- The solution of Hibernate query returning all null lists
- NoClassDefFoundError: org.springframework.validation.annotation.ValidationAnnotationUtils
- Idea couldn’t be found org.springframework.context .support