fix generated UserRepository when using Java8 and MongoDB

Remove the Optional for the save method as it is not supported by CRUDRepository

Fix #884