---
title: "hibernate 3.X getOldState is null 解决办法"
author: "cserw3c"
date: "2018-03-23T10:14:45Z"
tags: []
categories: ["数据库"]
slug: "hibernate-3-x-getoldstate-is-null"
draft: false
lastmod: "2018-03-23T10:14:45Z"
id: 2414339
url: "https://solomon2012.iteye.com/blog/2414339"
---

```java

将baseDao中使用saveOrUpdate 换成merge即可

```