I often observe in customers software that the persistence layer contains a lot of logic and even includes validation constraints. Let’s see why this can be a problem.