Source: Manning EJB 3 in Action
This two entities has one-to-one relationships between each others. As this program shows, a User entity object has-a one BillingInfo object.
I think the relationship occurs between the primary key field of each entities. Am I correct on this?
If yes, then how it is possible to have different types for those fields.
(I mean, the primary key field of "User" entity is a "String" value, but in BillingInfo, it is a "Long" value).