Closed markcdev101 closed 1 month ago
Description: Define JPA entities for Recipe and Ingredient, ensuring proper relationships (e.g., many-to-many between recipes and ingredients).
Spring Boot Concepts:
Guide:
Create Recipe, Ingredientdetails, Ingredient and Instructions entities using JPA annotations. @Entity and @Table(name="tablename")
Define relationships between entities using annotations.
Recipe; @OneToMany Ingredient_Details, @OneToMany Instructions
Instruction; @ManyToOne Recipe
Ingredient; @OneToMany Ingredient_Details
Ingredient_Details; @ManyToOne Ingredient
Implement repositories for Recipe, Ingredient and Instructions.
Write a unit test to ensure relationships are working properly.
Acceptance Criteria:
TODO: Add unit tests to ensure relationships are working properly
Test completed. TODO: Add more test in the future
Description: Define JPA entities for Recipe and Ingredient, ensuring proper relationships (e.g., many-to-many between recipes and ingredients).
Spring Boot Concepts:
Guide:
Create Recipe, Ingredientdetails, Ingredient and Instructions entities using JPA annotations. @Entity and @Table(name="tablename")
Define relationships between entities using annotations.
Recipe; @OneToMany Ingredient_Details, @OneToMany Instructions
Instruction; @ManyToOne Recipe
Ingredient; @OneToMany Ingredient_Details
Ingredient_Details; @ManyToOne Ingredient
Implement repositories for Recipe, Ingredient and Instructions.
Write a unit test to ensure relationships are working properly.
Acceptance Criteria: