Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you deal with inherited types of a model? #31

Open
anphetamina opened this issue May 22, 2021 · 0 comments
Open

How would you deal with inherited types of a model? #31

anphetamina opened this issue May 22, 2021 · 0 comments

Comments

@anphetamina
Copy link

Let's say you have different types of Batch that deal with different types of OrderLine, each type is derived from their related base classes.
Consider this use case: you can sale a Batch to a buyer that can verify the purchase by validating a proof using an information contained in another object that is stored on the network that you can retrieve by a different service. Each type of Batch implements a different type of validation.
How would you design this case using the architecture depicted on the book?

@anphetamina anphetamina changed the title How would you deal with inherited type of a model? How would you deal with inherited types of a model? May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant