Hibernate one-to-one (on foreign key) vs one-to-one (on primary key)
问题 I have questions about What are the benefits of using a one-to-one association on foreign key or a one-to-one association on the primary key ? I've read the documentation of Hibernate available at: http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/associations.html#assoc-unidirectional-121 Can someone tell me with details the plus of using the first or the second implementation? Another question, I have a one-to-one unidirectional relationship between User and Perimeter. (User ---->