fix: fix playercards, dealercards and deck referencing the same database entity
All checks were successful
All checks were successful
This commit is contained in:
parent
500a76dd7a
commit
7a7d24c8ea
5 changed files with 21 additions and 12 deletions
|
@ -1,6 +1,5 @@
|
|||
package de.szut.casino.blackjack;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonBackReference;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import jakarta.persistence.*;
|
||||
|
@ -30,4 +29,11 @@ public class CardEntity {
|
|||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Rank rank;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private CardType cardType;
|
||||
}
|
||||
|
||||
enum CardType {
|
||||
DECK, PLAYER, DEALER
|
||||
}
|
||||
|
|
Reference in a new issue