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

[Question] A repository for every entity? #337

Open
PrasannaVenkadesh opened this issue Jul 19, 2022 · 0 comments
Open

[Question] A repository for every entity? #337

PrasannaVenkadesh opened this issue Jul 19, 2022 · 0 comments

Comments

@PrasannaVenkadesh
Copy link

PrasannaVenkadesh commented Jul 19, 2022

My question is regarding the repository pattern.

In your example, you have only created a SQLAlchemyRepository for storing and retrieving Batch entities, but not Orders or Products. This lead me to confusion, What if, I want to query for all Orders or all Products?

Do we need to define SQLAlchemyRepository class for each entity? I don't think so, but at the same time, I cannot also understand how would I query for all orders and products.

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