You should also check for `null` – `timeUnits` will be set to `null` when the object comes out of the database, so if you go to save that, it might cause a validation error.