Skip to content

Feature/133 persistence into database#152

Merged
XtophB merged 38 commits into
developmentfrom
feature/133-persistence-into-database
Jun 7, 2026
Merged

Feature/133 persistence into database#152
XtophB merged 38 commits into
developmentfrom
feature/133-persistence-into-database

Conversation

@XtophB

@XtophB XtophB commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Context

This PR contains the addition of persistency mapping functionality into our DB.

Description

The addition of these classes allow us to map the current game state, lobby and player to the entity classes. These will then be stored in the database.

Changes in the code base

  • Addition of helper mapping class to create snapshot
  • Addition of service class for adding snapshot to the DB
  • Replace JSON persistence in GameSocketController with DB persistence

Changes outside the code base

N/A

Additional information

N/A

@XtophB XtophB marked this pull request as draft June 6, 2026 15:12
@XtophB XtophB marked this pull request as ready for review June 6, 2026 20:36
@XtophB XtophB linked an issue Jun 6, 2026 that may be closed by this pull request
Transactional should be auto configured since we are using SpringBoot if I understand correctly
@XtophB XtophB marked this pull request as draft June 6, 2026 20:49
Saving to DB is only meant to happen after a turn is over.
@XtophB XtophB marked this pull request as ready for review June 6, 2026 21:03
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

@tasaje1 tasaje1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm danki

@the-only-queen-anna the-only-queen-anna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@XtophB XtophB merged commit 8317582 into development Jun 7, 2026
2 checks passed
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.

JSON Persistence -> DB Persistence

3 participants