feat: add game state enum and refactor game components

This commit is contained in:
Jan-Marlon Leibl 2025-04-02 09:06:44 +02:00
parent 349e4ce1ec
commit 4b569157aa
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
10 changed files with 105 additions and 115 deletions

View file

@ -24,10 +24,6 @@ public class BlackJackGameEntity {
@GeneratedValue
private Long id;
@Version
@JsonIgnore
private Long version;
@ManyToOne
@JoinColumn(name = "user_id", nullable = false)
@JsonIgnore

View file

@ -19,10 +19,6 @@ public class CardEntity {
@JsonIgnore
private Long id;
@Version
@JsonIgnore
private Long version;
@ManyToOne
@JoinColumn(name = "game_id", nullable = false)
@JsonBackReference