An Analysis of NonUniqueObjectException and LazyInitializationException in Hibernate
I consider Hibernate a great and useful tool. But it has some mean Exceptions lurking in the darker corners. Today I’d like to explore the ones from the title in a little more detail, including different approaches on how to avoid them.
Let’s start with the well known LazyInitializationException. When you search for this one in [...]