Hello guys,
Here is my mapping problem:
I have a class A with the following fields:
Code:
Class A:
- ID (primary key)
- source
- time
- B
and a class B:
Class B:
- ID (primary key)
- version
I would like to map A to B (the B field in A) by using both
ID and version as a foreign key. Note that other classes use B.ID as a simple foreign key.
I can't solve this, I may be too unskilled with databases... I am not using annotations.
Any help to solve this mapping would be greatly appreciated...
thanks!
Karim, Tokyo