---
title: "HibernateSessionFactory.getSession().save(Object o)不保存"
author: "lynnwoo"
date: "2010-10-29T17:07:05Z"
tags: ["Hibernate", "Spring"]
categories: ["企业架构"]
slug: "hibernatesessionfactory-getsession-save-object-o"
draft: false
lastmod: "2010-10-29T17:07:05Z"
id: 797856
url: "https://lynnwoo.iteye.com/blog/797856"
---


HibernateSessionFactory.getSession().save(Object o)
是hibernate中的方法。只有事务提交了，保存才进行
HibernateDaoSupport.getHibernateTemplate().save(Object o)
是spring的方法，与hibernate无关。里面封装了对事务的处理
