- 浏览: 42291 次
- 性别:
- 来自: 广州
-
最新评论
-
kinglun:
小菜鸟蜕变之路 写道switch()里面能有string类型吗 ...
简单工厂模式 -
小菜鸟蜕变之路:
switch()里面能有string类型吗?
简单工厂模式 -
kinglun:
chenxiaomin168 写道这个还不简单,还需要记录? ...
导出oracle数据库 -
chenxiaomin168:
这个还不简单,还需要记录?
导出oracle数据库 -
kinglun:
lydia_Study 写道刚毕业的前两年,积累工作经验,锻炼 ...
离职高峰期来临,我的内心开始骚动了
文章列表
<form action="×!××.action" id="myform" name="myform">
</form>
<a
href="javascript:document.forms['myform'].submit();"
style="color: #147ed9;"><img src="images/create.png"
style="margin-right: 5px;" />Cre ...
hibernate中清除缓存
- 博客分类:
- hibernate
在实现类中加入
this.getSessionFactory().evict(*class);
this.getSessionFactory().getCurrentSession().clear();
在hibernate中执行Sql语句
- 博客分类:
- hibernate
public void remove(int id){
java.sql.Connection conn=null;
java.sql.Statement stm=null;
try {
conn=this.getHibernateTemplate().getSessionFactory().openSession().connection();
stm = conn.createStatement();
String sql = "delete from × where id="+id;
stm.execu ...
could not initialize proxy - no Session
在web.xml文件中加入
<filter>
<filter-name>lazyLoadingFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
</filter-class>
</filter>
<filte ...