SuccessChanges

Summary

  1. tsk68: Adds JPA support for user favorite stories (details)
Commit 8db2ed2854f93aa8cdc65424fbd861ad0d55e7f7 by devpablogg
tsk68: Adds JPA support for user favorite stories
This commit adds the JPA mapping needed to support users having a list
of favorite microstories. It introduces a bidirectional @ManyToMany
relationship between User and Story, backed by the new user_favorites
join table. Domain entities were updated with helper methods to manage
the association and expose unmodifiable views. Database DDL/DML scripts
and domain tests were updated accordingly. DBUnit dataset was extended
to include favorite stories.
The file was modifieddomain/src/test/java/es/uvigo/esei/microstories/domain/entities/StoryTest.java
The file was modifieddomain/src/test/java/es/uvigo/esei/microstories/domain/entities/UserTest.java
The file was modifiedadditional-material/db/microstories-mysql.delete.sql
The file was modifieddomain/src/main/java/es/uvigo/esei/microstories/domain/entities/Story.java
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/services/StoryService.java
The file was modifiedtests/src/main/resources/datasets/stories.xml
The file was modifiedadditional-material/db/microstories-mysql.data.sql
The file was modifiedadditional-material/db/microstories-mysql.full.sql
The file was modifiedtests/src/main/resources/datasets/stories-with-delete-1.xml
The file was modifiedtests/src/main/resources/scripts/cleanup.sql
The file was modifiedadditional-material/db/microstories-mysql.drop.sql
The file was modifiedadditional-material/db/microstories-mysql.creation.sql
The file was modifieddomain/src/main/java/es/uvigo/esei/microstories/domain/entities/User.java