package metier;

import jakarta.persistence.*;

import java.io.Serializable;
import java.util.List;

public class Question implements Serializable {
    private int id;
    private Reponse reponse;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    @OneToMany(mappedBy ="reponse", cascade = CascadeType.DETACH)
    public Reponse getReponse() {
        return reponse;
    }

    public void setReponse(Reponse reponse) {
        this.reponse = reponse;
    }
}
