Fin intégration jumele gagnant
This commit is contained in:
30
src/main/java/com/pmumali/ch2_jumelegagnant/model/Gains.java
Normal file
30
src/main/java/com/pmumali/ch2_jumelegagnant/model/Gains.java
Normal file
@@ -0,0 +1,30 @@
|
||||
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<Double> rapports; // Rapports pour chaque combinaison payable
|
||||
|
||||
private LocalDateTime dateCalcul;
|
||||
}
|
||||
Reference in New Issue
Block a user