Setting primary key column is not properly handled if column name is different from 'id'.
Setting primary key column is not properly handled if column name is different from 'id'.