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

Foreign Key Mapping pattern #1296

Open
iluwatar opened this issue Jul 7, 2020 · 5 comments
Open

Foreign Key Mapping pattern #1296

iluwatar opened this issue Jul 7, 2020 · 5 comments

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jul 7, 2020

Description:
The Foreign Key Mapping design pattern is used to maintain relationships between tables in a relational database by using foreign keys. This pattern helps in establishing and enforcing referential integrity between related entities. The implementation of this pattern typically involves:

  1. Adding foreign key columns in the child table that reference primary keys in the parent table.
  2. Ensuring the foreign key constraints are properly defined and maintained.
  3. Managing the relationships and ensuring the consistency of data through CRUD operations.

This pattern is essential for ensuring data integrity and facilitating efficient data retrieval in relational database systems.

References:

Acceptance Criteria:

  1. A new implementation of the Foreign Key Mapping pattern is added to the project, including appropriate classes and database schema.
  2. Unit tests are written to cover all CRUD operations, ensuring that referential integrity is maintained.
  3. Documentation is updated to explain the Foreign Key Mapping pattern, including code examples and usage guidelines.
@lanxiang1234
Copy link

I would like to work on it

@ohbus
Copy link
Contributor

ohbus commented Apr 19, 2021

Happy to have you here @lanxiang1234

Please mention a timeline for when can we expect a PR against this issue.

@zswl110
Copy link

zswl110 commented Oct 8, 2022

I would like to work on it

@iluwatar
Copy link
Owner Author

iluwatar commented Oct 8, 2022

Yes, go ahead @zswl110

ZhuJiayuan1 added a commit to zswl110/java-design-patterns that referenced this issue Oct 19, 2022
zswl110 added a commit to zswl110/java-design-patterns that referenced this issue Oct 19, 2022
ZhuJiayuan1 added a commit to zswl110/java-design-patterns that referenced this issue Oct 22, 2022
u7275858 added a commit to zswl110/java-design-patterns that referenced this issue Oct 23, 2022
ZhuJiayuan1 added a commit to zswl110/java-design-patterns that referenced this issue Oct 23, 2022
u7275858 added a commit to zswl110/java-design-patterns that referenced this issue Oct 23, 2022
ZhuJiayuan1 added a commit to zswl110/java-design-patterns that referenced this issue Oct 23, 2022
u7275858 added a commit to zswl110/java-design-patterns that referenced this issue Oct 24, 2022
u7275858 added a commit to zswl110/java-design-patterns that referenced this issue Oct 24, 2022
u7275858 added a commit to zswl110/java-design-patterns that referenced this issue Oct 24, 2022
@stale
Copy link

stale bot commented Nov 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale issues and pull requests that have not had recent interaction label Nov 28, 2022
@iluwatar iluwatar added info: help wanted and removed status: stale issues and pull requests that have not had recent interaction priority: normal labels Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants