Skip to content

Conversation

@isaac-diez
Copy link

Design Entity Classes

Create or update the EatInOrder and TableRestaurant entity classes.
Implement a OneToMany relationship from TableRestaurant to EatInOrder.
Implement the corresponding ManyToOne relationship from EatInOrder to TableRestaurant.
Use appropriate JPA annotations such as @OneToMany, @ManyToOne, and @JoinColumn, etc.
Implement both cases: unidirectional/biderctional.

Implement JPA Repositories

Create JPA repository interfaces for both EatInOrder and TableRestaurant.
Extend JpaRepository<T, ID> for each entity.
Add any necessary custom query methods.

Create Service Layer

Develop service interfaces and implementations for both entities.
Include methods to handle the relationship between EatInOrder and TableRestaurant.
Implement CRUD operations and any additional business logic.

Develop REST Controllers

Create REST controllers for EatInOrder and TableRestaurant.
Implement endpoints that demonstrate the relationship between the entities.
Use appropriate HTTP methods for each operation.

### TESTS FAIL.

added EatInOrderService & EatInOrderServiceImpl
added EatInOrderDataLoader
poished code.
added test.
@AlbertProfe AlbertProfe changed the title PRA02 - Isaac Díez - OneToManyManyToOneRelationshipImplementation PRA02 - IsaacDíez - OneToManyManyToOneRelationshipImplementation Oct 23, 2024
@AlbertProfe AlbertProfe changed the title PRA02 - IsaacDíez - OneToManyManyToOneRelationshipImplementation PRA02-IsaacDíez-OneToManyManyToOneRelationshipImplementation Oct 23, 2024
@AlbertProfe AlbertProfe changed the title PRA02-IsaacDíez-OneToManyManyToOneRelationshipImplementation PRA02-IsaacDiez-OneToManyManyToOneRelationshipImplementation Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants