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 ----> Perimeter) and I want to use the association based on the foreign key.
Could I reverse the direction into (User <---- Perimeter) so the table User stay intact?
I think that is not reasonable (perimeter.getUser() !!!) but it's technically possible?