Tag Archive for "ORM" tag

SaveOrUpdate versus Merge in Hibernate

December 7th, 2008 by stevi | 51 comments

We all have those problems that we encounter just infrequently enough that when we see them again, we know we’ve solved this, but can’t remember how. The NonUniqueObjectException thrown when using Session.saveOrUpdate() in Hibernate is one of mine. I’ll be adding new functionality to a complex application. All my unit tests work fine. Then in [...]