Hibernate学习笔记
摘要:1. 配置了thread 后,才可使用sf.getCurrentSession();
2.基本用法,getCurrentSession()不用Close()
openSession() 需要 Close()
teacher s = new teacher();
s.setTitle("title");
s.setName("wzh");
Configuration cfg = new AnnotationConfiguration();
SessionFactory sf = cfg.configure().buildSessionFactory();
Session session = sf.openSession();
session.beginTransaction();
session.save(s);
session.getTransaction().commit();
session.cl
阅读全文
posted @
2013-12-19 22:03
上校
阅读(223)
推荐(0) 编辑
eclipse ide for java ee developers 开发环境搭建(j2ee)
摘要:2011-04-03补充:
推荐另一个反编译插件--Java decompiler,提供gui和plugin两种方式。
官方网站:http://java.decompiler.free.fr/
本人感觉,gui的方式还是很不错的,可以批量反编译并保存,可以作为插件的补充。
eclipse快捷键大全:http://www.blogjava.net/action/articles/17339.html
在此,作者号召大家能够将自己对eclipse的使用经验分享出来,或者将自己的困惑和疑问提出来,积极分享,共同成长。
阅读全文
posted @
2013-12-03 00:04
上校
阅读(2839)
推荐(0) 编辑