PersistentIgnorance

DomainDrivenDesign.pdf states that:

……, if you use a PI-based approach for persistent objects, there’s no requirement to do any of the following:

• Inherit from a certain base class (besides object)
• Only instantiate via a provided factory
• Use specially provided datatypes, such as for collections
• Implement a specific interface
• Provide specific constructors
• Provide mandatory specific fields
• Avoid certain constructs

Unfortunately, people have forgotten the benefits of O/R Mapping. Too many generators, auto-gen classes, auto-gen database schemas, ato-gen mappings…. kinda throws the core value/benfit of O/R Mapping out the window. Separate domain, as detached as they could be/need to be – brought together by mapping.

Leave a Comment