null « Validation « JPA Q&A





1. How elegantly make validation for the case when all fields in object are null?    stackoverflow.com

I want to throw exception if all fields in object are null, but traditional way for checking on null looks not very smart. What can be another way to do this? ...