Skip to content

[Question] A repository for every entity? #337

Open
@PrasannaVenkadesh

Description

@PrasannaVenkadesh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions