package com.pmumali.ch2_jumelegagnant.model; import jakarta.persistence.*; import lombok.*; import java.time.LocalDateTime; import java.util.List; @Entity @Data @NoArgsConstructor @AllArgsConstructor @Table(name = "gains") public class Gains { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToOne @JoinColumn(name = "course_id") private Course course; private double masseAPartager; private double montantCagnotte; @ElementCollection private List rapports; // Rapports pour chaque combinaison payable private LocalDateTime dateCalcul; }