Added special primary keys support to one-to-one and one-to-many
relationships.