fix repository init
add auto Id on save new entity