SuccessChanges

Summary

  1. tsk24: Implements User entity and story authorship (details)
Commit 273348a5338421b8c491c289f449af3b9b9b6416 by devpablogg
tsk24: Implements User entity and story authorship
A new User entity has been introduced to represent application users,
including properties for authentication and role management via a new
UserType enum. The Story entity was updated to establish a mandatory
Many-to-One relationship with the User, representing the author of the
content. This change involved updating the database schema definitions
to include the user table and foreign key constraints, as well as
modifying the data insertion scripts. Additionally, unit tests for the
new entity were created, and existing integration tests and datasets
were adjusted to account for the required author association.
The file was modifiedadditional-material/db/microstories-mysql.creation.sql
The file was addeddomain/src/main/java/es/uvigo/esei/microstories/domain/types/UserType.java
The file was modifieddomain/src/test/java/es/uvigo/esei/microstories/domain/entities/StoryTest.java
The file was modifiedservice/src/main/resources/META-INF/persistence.xml
The file was modifiedtests/src/main/resources/datasets/stories.xml
The file was modifieddomain/src/main/java/es/uvigo/esei/microstories/domain/entities/Story.java
The file was addeddomain/src/test/java/es/uvigo/esei/microstories/domain/entities/UserTest.java
The file was modifiedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java
The file was addedtests/src/main/resources/datasets/users.xml
The file was modifiedadditional-material/db/microstories-mysql.drop.sql
The file was modifiedadditional-material/db/microstories-mysql.full.sql
The file was modifiedadditional-material/db/microstories-mysql.delete.sql
The file was modifiedadditional-material/db/microstories-mysql.data.sql
The file was modifiedtests/src/main/resources/scripts/cleanup.sql
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java
The file was modifiedservice/src/test/resources-wildfly-embedded-h2/cleanup-autoincrement-stories.sql
The file was addeddomain/src/main/java/es/uvigo/esei/microstories/domain/entities/User.java