add the ability to set the fieldname used to get the entity by (default ...

...= id)
getFieldNameIdentifier would be a better name for this method, same goes for the setter