Hibernate Tips: Validate that only 1 of 2 associations is not null
Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: In my domain model, a City can be part of a Province or a Country but not of both…