Hibernate:selectthis_.idasid3_0_,this_.pathaspath3_0_,this_.nameasname3_0_,this_.dateasdate3_0_fromse.pptthis_orderbythis_.idascorg.hibernate.exception.SQLGrammarExceptio...
Hibernate:
select
this_.id as id3_0_,
this_.path as path3_0_,
this_.name as name3_0_,
this_.date as date3_0_
from
se.ppt this_
order by
this_.id asc
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
pensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
at alina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1482)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'this_.date' in 'field list'
中间略去n多报错
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
7)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
... 78 more
详细情况是这样的,我的数据库建立没问题,代码也和别人对照过,同一个数据库内别的表都能正常连接,只有这个叫做ppt的表没法连接,一直报错,路径配置也没有问题,完全要疯了,求大神帮忙!
展开