Generate service for the entity