Hello Liza,
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 (
id int,
someText varchar(255),
primary key(id)
)
table b(
id int,
foreign_key_to_a int,
...
You may have a look in the Hibernate reference as well. There are quite some examples.
Best Regards Sebastian