摘要:
原理: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.beginTransaction();//创建事务Transation6.persistent 阅读全文
posted @ 2013-05-04 21:53
㊣执着㊣
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号