duplicate key exception using Spring Boot + JPA Mongo DB

I get a duplicate key exception (see bottom) when saving an object in Mongo DB. However the code is pretty simple and it first tries to retrieve the object: @Service public class UsersPlayersService extends AbstractService { public UsersPlayers add(String firebaseId, UserPlayerDetails userPlayerDetails) { UsersPlayers usersPlayers = usersPlayersRepository.findByFirebaseId(firebaseId); if (usersPlayers == null) { usersPlayers = new…

Details

tar: Removing leading `/’ from member names “it is not duplicate”

#!/bin/bash source=”/home/user/work/tar/deneme” source2=”/home/user/work/tar/deneme1″ for i in {1..5} do tar -czvf $source2/$i/$i.tar.gz $source/$i/ done I get this error message. tar: Removing leading/’ from member names` this is my script and error. there are a lot of questions here but my problem doesn’t solve. I run script than script create .tar.gz file. But if I unzip with…

Details