Skip to content

Conversation

@CasperWA
Copy link
Collaborator

Closes #27

If an entity instance class has already been created/generated, it will be reused instead of being recreated.

To do:

  • Test the implementation.

CasperWA added 2 commits May 28, 2024 14:46
This is from `create_entity()`.

If an existing class already exists in the `generated_classes` module,
it is investigated whether the `entity` attribute matches the current
entity, if yes, the class is returned, if no to any of those conditions
a ValueError is raised.

In the future, one could either extend the naming conventions of these
classes to include more and more "parts" of the identity in order to get
uniqueness, supporting having entity instance classes for the same
entity with different versions.
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.

Return already created classes from factory

2 participants