AbstractEntity getIdentifier and toArray methods implementation