Primary key must be get from base entity in has-one & belongs-to relation.