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

Explicitly control automatic addition of identity field #432

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

subhashb
Copy link
Contributor

@subhashb subhashb commented Jun 7, 2024

Entities and Aggregates in Protean are automatically augmented with an identity field (named id), when one has not been explicitly provided. Until now, the assumption was the abstract aggregates will not need to have identifier fields, which was incorrect.

This commit allows control of automatic addition of identity field with an explicit flag named auto_add_id_field. With this change, even abstract aggregates can have identity fields.

Entities and Aggregates in Protean are automatically augmented with
an identity field (named `id`), when one has not been explicitly provided.
Until now, the assumption was the abstract aggregates will not need to
have identifier fields, which was incorrect.

This commit allows control of automatic addition of identity field with
an explicit flag named `auto_add_id_field`. With this change, even
abstract aggregates can have identity fields.
@subhashb subhashb self-assigned this Jun 7, 2024
@subhashb subhashb merged commit da88061 into main Jun 7, 2024
4 checks passed
@subhashb subhashb deleted the explicit-auto-id-field-control branch June 7, 2024 20:34
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

Successfully merging this pull request may close these issues.

1 participant