feat: add game state enum and refactor game components
This commit is contained in:
parent
349e4ce1ec
commit
4b569157aa
10 changed files with 105 additions and 115 deletions
|
@ -24,10 +24,6 @@ public class BlackJackGameEntity {
|
|||
@GeneratedValue
|
||||
private Long id;
|
||||
|
||||
@Version
|
||||
@JsonIgnore
|
||||
private Long version;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "user_id", nullable = false)
|
||||
@JsonIgnore
|
||||
|
|
|
@ -19,10 +19,6 @@ public class CardEntity {
|
|||
@JsonIgnore
|
||||
private Long id;
|
||||
|
||||
@Version
|
||||
@JsonIgnore
|
||||
private Long version;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "game_id", nullable = false)
|
||||
@JsonBackReference
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue