0
Good afternoon,
I’d like to relate the class Partida
with class Time
, where departure would receive the PK(Id) of the home team and the visiting team. I am doubtful how to relate in both classes, because use in the class Partida
, as below:
@ManyToOne
private List<Time> times;
Seems incorrect to me.
How could I relate both classes and generate tables in the database?
In case it is not necessary to add the @Onetomany annotation in the Time class?
– Hawk
The way I showed above, the relationship already accomplished
– Alysson Chicó