fix when orm entity identifier field name is not 'id'

Primary key  is not always called 'id'