The most common way is to use the same value for all three IDs (so userID = 7 corresponds to userInformationID = 7 and userProfileID = 7). In this case, use id generator="foreign" in the UserInformation and UserProfile classes, and map the association as one-to-one on the User side, and <one-to-one constrained="true"> on the UserProfile and UserInformation sides.
If you're using foreign keys, so table UserInformation has UserInformationID and UserID columns that are not the same, then use <one-to-one property-ref="User"> on the User side (so that it knows to use the "User" property in UserInformation to find the matching object), and <one-to-one property-ref="UserInformation" constrained="true"> on the UserInformation side.
_________________ Code tags are your friend. Know them and use them.
|