Daggerpov / Spawn-App-Back-End

Back-end REST API for the Spawn mobile app, written in Java Spring Boot, and connected to a MySQL database.
Other
2 stars 0 forks source link

Convert Entities to classes, from `record`s #27

Closed Daggerpov closed 2 days ago

Daggerpov commented 2 days ago

Currently, all entities (models) are made as Java record types, but as @SeabertYuan 's pointed out, this will cause issues with PUT requests (updates), since Java record types are immutable.

So, this is the first step of the solution:

The second step is to create DTOs, which can actually be records, and map between DTOs and entities. I'll put that in a separate GitHub issue

SeabertYuan commented 2 days ago

Should be completed with PR #32