Be Persistent

If you want to change yourself, you might be able to do it within 5 minutes. But if you want to change an organization change needs time. Even when you are the CEO, change doesn’t happen because you announced it on a big meeting. But If you push towards change, If you don’t give up, [...]

Posted in: The Rest by Jens Schauder 2 Comments

Properties of a Good Unit Tests

Question: what are the properties which make a test a good unit test? If you have a good answer, check out my answer and add to it in the comments. If you don’t here is mine. Long Descriptive Name: For example returnsNullWhenCalledOnEmptyList is a nice name for a test Simple Clean Structure: A test performs [...]

Posted in: Softwaredevelopment by Jens Schauder 4 Comments

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 [...]