Codooba
JCenter
posts - 20,comments - 9,trackbacks - 0
通过hibernateTemplate 使用session :   Session session =  this.hibernateTemplate.getSessionFactory().openSession();


回调:           hibernateTemplate. execute(new HibernateCallback() {
                            public Object doInHibernate(Session session)
                                    throws HibernateException, SQLException {
                                    //doSomething
                                     }
                        });
posted on 2007-10-25 23:35 Zhangwenlong 阅读(234) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: