mardi 16 juin 2015

How to temporarily circumvent domain object's creation contracts when restoring application from backup?

Our application's domain model objects have constructors with nontrivial contracts. For example an Entry object requires a Catalog object in order to be created. The problem is, these contracts have to be violated temporarily when I'm doing bulk restore of objects from XML file as the dependent objects might not be available until the backup file is fully processed.

Is there any established pattern or solution to this problem?

Aucun commentaire:

Enregistrer un commentaire