A 1---* A_B *---1 B
Table A has aID (PK), Table B has bID (PK), table A_B has:
aID (PK, FK), bID (PK, FK), num
I tried
property name="A" fieldtype="many-to-one" cfc="A" fkcolumn="aID";
property name="B" fieldtype="many-to-one" cfc="B" fkcolumn="bID";
property name="num" type="numeric";
but CF keep asking me for an ID column... what can I do? The FK's should be the PK's.
If there's no way to specify it in CFC, how to represent this link table in hbm xml?
Thx