Java 我遇到了休眠错误

Java 我遇到了休眠错误,java,hibernate,nio,Java,Hibernate,Nio,为什么我会犯这个错误 Exception in thread "Thread-2" org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.exception.JDBCExceptionHelper.conv

为什么我会犯这个错误

Exception in thread "Thread-2" org.hibernate.exception.SQLGrammarException: could not execute query
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.loader.Loader.doList(Loader.java:2214)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
    at org.hibernate.loader.Loader.list(Loader.java:2090)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    at daoimplclasses.site_configdaoimpl.listPendingSiteConfig(site_configdaoimpl.java:41)
    at service.Config.run(Config.java:119)
Caused by: java.sql.SQLException: Unknown column 'this_.temperEnabled' in 'field list'
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:3026)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1137)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1231)
    at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1778)
    at org.hibernate.loader.Loader.doQuery(Loader.java:662)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
    at org.hibernate.loader.Loader.doList(Loader.java:2211)
    ... 7 more

Hibernate生成的查询在数据库表中找不到列
temperEnabled

您的查询错误。您可以发布查询吗?请参见:)原因:java.sql.SQLException:com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)的“字段列表”中的未知列“this.temperEnabled”,因为在daoimplclasses.site\u configdaoimpl.listPendingSiteConfig(site\u configdaoimpl.java:41)的
中执行查询时出现问题
-看看这一点和您的问题,您误解了可以对堆栈溢出提出什么要求(以及如何要求)。你可能想看一下《刚刚读过stacktrace》的人