devxlogo

November 26, 2019

Allow Only One Null Property

Consider a Review object with three properties: article, book and magazine. Let’s assume that only one of these three properties should be set as non-null. For checking this constraint we