
hibernate学习心得
文章平均质量分 78
wang645372816
做事认真,仔细。遇到问题多方面思考。
展开
-
hibernate操作数据库的完整调用语句
Configuration cfg = new Configuration().configure();//解析hibernate.cfg.xml文件 SessionFactory sf = cfg.buildSessionFactory();//建立session工厂 Session session = sf.openSession();//打开数据库连接 session.beginTra原创 2015-02-13 20:46:48 · 511 阅读 · 0 评论 -
hibernate中连接SQLServer2008的配置文件hibernate.cfg.xml
hibernate.cfg.xml中的文件内容如下: "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">原创 2015-02-05 17:32:13 · 7733 阅读 · 0 评论