读取并解析配置文件。读取并解析映射文件,创建 SessionFactory。打开 Session。创建事务。进行持久化操作。提交事务。关闭 Session。关闭 SessionFactory。 Was this helpful? YesNo 0 / 0 上一篇: get()和 load()的区别? 下一篇: 在 hibernate 中使用 Integer 和 int 做映射有什么区别? 发表回复 取消回复0 Your email address will not be published. 在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。