Don't assume that all objects have an ID field

They do all have a PK.