- 浏览: 50468 次
- 性别:
-
最新评论
-
messi_18:
Thanks very much! I also met th ...
【转】org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User] -
smilingtodie:
...
struts2.3.4+hibernate4.3+spring3.2.3所需要的jar包
文章列表
org.hibernate.hql.internal.ast.QuerySyntaxException: User is not mapped [from User u where u.id in (:ids)]
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromEl ...
在网上找了很多都不是很全现在把struts2.3.4+hibernate4.3+spring3.2.3所需要的jar包整理出来发一下。
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
在ssh整合时出现这种错误, ...
这个是beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop=&qu ...
在网上找了好多都说的不全
beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
x ...