fix hash method when primary key is not id
fix hash method when primary key is not id

Change-Id: Ia1c6f086b7eaa8abb1839864f15bd21732d7c891
Reviewed-on: https://gerrit.instructure.com/80024
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Product-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>
QA-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>
Tested-by: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>

instructure/switchman,instructure/switchman