1
I need to do a hibernate mapping of a relationship 1:N
in two tables, however there is an associative table that has as columns the ids of the other two tables.
Example:
The table Servicos
may possess many Itens
and each item can only be part of a service.
And there’s a table servicos_itens
containing the ID of the other two tables.
These foreign keys in the associative table are also ids of this table (i.e., they are composite key) or it has, in addition to these 2 fields, a specific field for id?
– StatelessDev