Give EntityType a getId function