Implementing the Repository pattern using SqlAlchemy (part 2)
In the previous post, we implemented a really simple file-based repository that used the pickle module. As we didn't use a database, we didn't have to deal with creating tables and columns, and all the domain models were directly serialized from a me...
dddinpython.hashnode.dev11 min read
oskarro1515
Hi! This post was to interesting to me. Thanks for creating it. I have one question about the method .add(). You are using the domain class id to add it to the identity map. However, how should we use it if we are creating a new instance? The domain class will not have .id yet.