add getId method for entity interface