Document class is made following the aggregate pattern of DDD.
The Answer and Question objects are not exposed outside and all modifications are done through the Document
object to prevent Data Integrity. A version for document has been introduced which will solve the concurrency issues
that could arise while updating two documents at the same time.
Document class is made following the aggregate pattern of DDD. The Answer and Question objects are not exposed outside and all modifications are done through the Document object to prevent Data Integrity. A version for document has been introduced which will solve the concurrency issues that could arise while updating two documents at the same time.