4 ways of mapping Value Object in SQLAlchemy

In the previous post Persistency of DDD aggregate, I described persisting as aggregate with proper application boundaries. Now let’s describe how to persist ValueObject in a relational database using SQLAlchemy and still with boundaries in mind. The persistency of ValueObject in relational databases can be tricky. Unlike entities, there is no id for value objects. We can … Read more

Persistency of DDD aggregate

Post in answer to a StackOverflow questions “SQLAlchemy and DDD” and “Persist POJOs in Python using a DDD approach”. You can find code used in this example here. DTO Having out DDD component I want to separation from DTO used by our aggregate and repository implementation. I introduce interface for DTO that will be delivered by … Read more