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

Implement 'processAssociation' in utils #1

Open
asishallab opened this issue Nov 25, 2021 · 0 comments
Open

Implement 'processAssociation' in utils #1

asishallab opened this issue Nov 25, 2021 · 0 comments

Comments

@asishallab
Copy link
Member

Create a correct Zendro association definition. See this spec.

Open questions

We might have to parse the associated data model definition to get information about:

  • reverseAssociation
  • implementation: Where is the foreign-key stored.
  • type of association: one-to-many, one-to-one, many-to-one, many-to-many

Implementation sketch for associations

First, process the JSON Schemas and declare "forward" one-to-one and one-to-many associations. Put the declared "forward" associations into a dictionary.

Second, process the forward associations and declare the reverse associations required by Zendro.

This implies that the translator processes all schemas in a single go.

Differentiate between one-to-many and many-to-many

This step will involve manual curation.

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