Single id is not allowed on composite primary key

You may read Single id is not allowed on composite primary key in entity.