I have 2 tables.. Table A contains composite primary key. I am using this key as a foreign key in another table. but in this table i need to have a composite primary key where one of the column i need to take it from the composite key of A table. I could not achieve this with mapsId as it is taking a whole CK. is there anyway to achieve it?
i just need hibernate way of doing like below: