java web 异常解决
呱牛喇
这个作者很懒,什么都没留下…
展开
-
org.hibernate.sessionexception: session is closed
1.通过getSession()方法获得session进行操作Java代码 public class Test extends HibernateDaoSupport{ public void save(User user){转载 2011-09-03 11:28:18 · 1288 阅读 · 0 评论 -
Deployment failure on Tomcat 6.x. Could not copy all resources to
Deployment failure on Tomcat 6.x. Could not copy all resources to C:\tomcat6\webapps\OAPMS. If a file is locked, you can wait until the lock转载 2011-08-24 09:23:57 · 780 阅读 · 0 评论 -
hibernate通过annotation自动生成数据库表
在生成数据库表的过程中,报 javax.persistence.OneToMany.orphanRemoval()Z异常的解决方法:去掉myeclipse中的j2ee包居然就可以了!! @oneToMany(mappedBy="另一方类中对应的属性名(外键)",原创 2011-08-24 14:13:53 · 1892 阅读 · 0 评论