Skip to content

Establish relationship between Product and Inventory#30

Closed
Oriol-Farras wants to merge 1 commit into
mainfrom
Inventory_relations
Closed

Establish relationship between Product and Inventory#30
Oriol-Farras wants to merge 1 commit into
mainfrom
Inventory_relations

Conversation

@Oriol-Farras

Copy link
Copy Markdown
Contributor

No description provided.

@Oriol-Farras Oriol-Farras self-assigned this Oct 8, 2025
private String location;

private int totalStock;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to implement this side of the relationship. Just need the ManyToOne side that is easier to persist into a relational database. The other side can be generated using a findByInventory method in the ProductRepository

@rogargon rogargon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, addres my comment about the OneToMany relationship...

@rogargon

rogargon commented Oct 9, 2025

Copy link
Copy Markdown
Member

Closing this PR as it will be addressed by the group working with the Product class. They had already modelled their side of the relationship, but it was commented

@rogargon rogargon closed this Oct 9, 2025
@rogargon rogargon linked an issue Oct 16, 2025 that may be closed by this pull request
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.

Relationships regarding Inventory class

2 participants