Hi,
Got a question on one-to-one mapping. According to Tom Sedge's tutorial (
http://www.xylax.net/hibernate/), the one-to-one mapping requires a shared PK between two persistent classes. However, that's not the usual way we implement in database (we usually set up a foreign key in one of the tables). I was wondering, is it (the shared PK) REQUIRED or is just one of the ways to implement one-to-one mapping?
I did see another example from "http://www.meagle.com:8080/hibernate.jsp" that does not use a shared key, but to include an object from the second class to the first class.
Thanks for your help.
Lilly