I have the following entity :
@Entity
public class Attendance implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@ManyToOne
private Student student;
@Id
@ManyToOne
private Session session;
...
as you can see, the primary key is composed of two classes, and the CrudRepository accepts only one type as primary key (CrudRepository), how can I solve the problem please? Thank you.