Good afternoon,
I would like to relate the Partida
class to the Time
class, where I would get the PK (Id) of the home team and the visiting team. I'm wondering how to relate in both classes, since use in class Partida
, as below:
@ManyToOne
private List<Time> times;
It seems wrong to me.
How could I relate both classes and generate the tables in the database?