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

Changes (de persister) according to relationship table #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rahu-eGov
Copy link
Contributor

Updated department entity persister config to maintain relationship table

@@ -32,12 +30,22 @@ serviceMaps:

- jsonPath: $.departmentEntity.*.lastModifiedTime

- query: INSERT INTO department_entity_relationship(parent_id, child_id, is_true) VALUES (?, ?, ?);
basePath: departmentEntityRelationship.*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of keeping this parallel to the departmentEntity object, make this a sub object of departmentEntity.

Copy link
Contributor Author

@rahu-eGov rahu-eGov Jan 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are independent entity as term of data insertion and update.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. These are not independent entities. The relationship is part of the parent.

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.

2 participants