are there two strategies of mapping for <one-to-one/> ?one is primary key mapping strategy other is foreign key mapping strategy.what's the
advantage in each of them?
if i have a construction of db below:
table a
id int primary key
name varchar
table b
id int primary key
a_id int foreign key(a_id) references a(id)
how could we use the two strateies to get one a to one b.what are the
differences?
thanks very much!!