sorry but I did not understand as well. You speak about two tables and in your text you have 1+1+ a referencing table.
May be you should detail your question like:
table a (
You may have a look in the Hibernate reference as well. There are quite some examples.
Best Regards Sebastian