Add GameType Entity, Service and Repository. Test add GameType done.

This commit is contained in:
Olivier PARPAILLON
2025-07-09 11:15:17 +02:00
parent 76736405a3
commit eac38d9f4b
5 changed files with 69 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ package fr.eni.demo.bo;
import jakarta.persistence.*;
import lombok.*;
import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@@ -31,4 +33,8 @@ public class Stock {
@Column(name="GAME_DAILY_PRICE", nullable = false)
private Long dailyPrice;
@OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER, orphanRemoval = true)
@JoinColumn(name="GAME_ID")
private List<GameType> gameType;
}