摘要:
这两天再看hibernate,就自己总结了hibernate对jdbc的封装过程。1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionFactory4.sessionFactory.openSession();//打开Sesssion5.session.beginTran 阅读全文
posted @ 2012-05-23 17:40
h2内存数据库
阅读(845)
评论(0)
推荐(0)

浙公网安备 33010602011771号