SaveOrUpdate versus Merge in Hibernate
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 [...]