1st Table = Student [s_id is pk ]
2nd table = Teacher[t_id is pk , s_id is f_k] here i want to create composite key[comp_id] combining (t_id[pk] + s_id[f_k])
and that composite key use as foreign key to collage table
3rd table= collage[col_id is pk, comp_id as f_k ]
how to do in using J_PA repository and spring boot m_v_c
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…