The intermediate table of a many-to-many relationship contains extra column , struct_code :
create table acteur_saisie_indicateur
(
indi_code number(15) not null,
struct_code varchar2(15) not null,
user_code number(10) not null,
constraint pk_acteur_saisie_indicateur primary key (indi_code,struct_code,user_code)
);
My problem is about the @Id annotation for the entity corresponding to it : on which attributes should it be set ?