Quote:
Perhaps, the answer is that for a given DB, there is only
one way to define a one-one relationship and Hibernate
knows how to make <one-to-one> element do the right
thing.
Okay, I guess I am not that trusting. What I would really
like to hear "works" is the above assumption. That is,
given I have defined a one-to-one in a
mapping file that corresponds to a legacy schema, Hibernate
knows how to use the existing indices that define that
one-to-one. Is that the case?
The only reason I am generating sql is because for
prototype phase of project, I am recreating legacy
DB in MySQL.
Thanks
Rob