Domain driven design example3/24/2024 Poll = self.poll_respository.fetch_by_id(poll_id) ![]() Pub_date = models.DateTimeField('date published')ĭDD approach code I have seen people writing class PollService(object): ![]() Question = models.CharField(max_length=200) If yes, can you provide a good situation where you need to use DDD approach with an ORMįor example, this is the model class Polls(models.Model): From the sources on net I understood it is way of segregating your Domain Objects and Database Objects but I don't understand the difference between two.įor an example lets take the code of Polls example in django tutorial, there are two models Polls and Choice.Īre these domain level objects or database level objects? I am confused about Domain Driven Design Approaches.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |