sping hibernate jpa整合Seo is not mapped

codekong 2014-06-29

java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: Seo is not mapped [select seo from Seo seo where seo.type = :type]

at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1376)

at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1317)

at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:336)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

原因 因为tomcat使用的是apache-tomcat-6.0.20 

但是tomcat 改为apache-tomcat-7.0.16 就正常了.

相关推荐

sdsasdsdswew / 0评论 2019-11-02