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

Association Table Mapping pattern #347

Open
iluwatar opened this issue Jan 16, 2016 · 6 comments
Open

Association Table Mapping pattern #347

iluwatar opened this issue Jan 16, 2016 · 6 comments

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jan 16, 2016

Description:

The Association Table Mapping design pattern is used to manage many-to-many relationships between objects by using an intermediary table (association table) in the database. This pattern is particularly useful when an application requires handling complex relationships where each object can have multiple associations with objects of another type.

Main elements of the pattern:

  • Entities: These are the objects that have a many-to-many relationship.
  • Association Table: A table that holds the foreign keys referencing the primary keys of the associated tables.
  • Mappings: The process of defining how the objects are related through the association table.
  • Database Operations: CRUD operations need to account for the intermediary table to properly maintain the relationships.

References:

Acceptance Criteria:

  1. Create an association table to manage many-to-many relationships between two entities.
  2. Implement CRUD operations ensuring the association table is appropriately updated.
  3. Provide unit tests demonstrating the correct implementation and functionality of the Association Table Mapping pattern.
@hofmama3
Copy link

hofmama3 commented Mar 9, 2016

Can I work on this pattern?

@iluwatar
Copy link
Owner Author

Please go ahead @hofmama3

@iluwatar
Copy link
Owner Author

This issue is free for taking again.

@LeonoraGy
Copy link

I'd like to work on this pattern.

@iluwatar
Copy link
Owner Author

Thanks @LeonoraGy go ahead

@iluwatar
Copy link
Owner Author

iluwatar commented Jul 6, 2020

@LeonoraGy are you still working on this pattern?

@LeonoraGy LeonoraGy removed their assignment Jul 7, 2020
pratigya0 pushed a commit to pratigya0/java-design-patterns that referenced this issue Aug 3, 2023
fix the minor spelling error that drove me nuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment