MySql Bug?I see users who are not there!

I finished creating a simple Spring-boot project in which I can enter users and through the Get command it returns me the name (from a list of identical names) with the oldest entry date. Unfortunately, every time I ask for Get it returns this MESSAGE:

D:\>curl -G localhost:8080/demo/first -d name=Biagio
{"name":"Biagio","timestamp":"2020-10-05T08:54:18.623+00:00","email":"biagio@gmal.com","surname":"Biagio2"}

Even when I try to save something in the DB, it tells me that it is saved but there is no trace of the new User Inserted.
In my database, however, there is no User with these credentials! My Database:

+----+------------------------+----------+----------------------------+---------+
| id | email                  | name     | stmp                       | surname |
+----+------------------------+----------+----------------------------+---------+
| 32 | mirketto90@yahoo.it    | Mirko    | 2020-10-01 12:31:47.827000 | NULL    |
| 36 | biagio@gmail.com       | Biagio   | 2020-10-01 16:31:31.687000 | Vaso    |
| 37 | biagio@gmail.com       | Biagio   | 2020-10-01 16:31:50.077000 | Vaso    |
| 38 | biagio@gmail.com       | Biagio   | 2020-10-01 18:35:45.992000 | Vaso    |
| 39 |                        | Mirko    | 2020-10-02 13:24:05.840000 | Vaso    |
| 40 | mirkoparioli@gmail.com | Mirko    | 2020-10-02 13:24:23.383000 | Vaso    |
| 47 | giovanni@gmal.com      | Giovanni | 2020-10-05 12:11:05.997000 | John    |
+----+------------------------+----------+----------------------------+---------+

I’m sure I’m using the right database (db_example), this is my
ApplicationProperties.java

spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/db_example?useLegacyDatetimeCode=false&serverTimezone=Europe/Rome
spring.datasource.username=springuser
spring.datasource.password=ThePassword

Below I enter the interested parties of my project to try to get something out of it, because I have been stuck for days now

AccessingDataMysqlApplication.java

package com.example.accessingdatamysql;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
public class AccessingDataMysqlApplication {

  public static void main(String[] args) {
    SpringApplication.run(AccessingDataMysqlApplication.class, args);
  }

}

MainController.java

package com.example.accessingdatamysql.rest;

import javax.persistence.NoResultException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.accessingdatamysql.model.UserDto;
import com.example.accessingdatamysql.service.UserService;

@RestController
@RequestMapping("/demo")
public class MainController {

@Autowired
private UserService userService;

@Transactional
//@RequestMapping(value = "/add/", method = RequestMethod.POST)
@PostMapping(path="/demo/add")
public String addNewUser(@PathVariable("name") String name, @PathVariable("email") String email,
@PathVariable("surname") String surname) {

UserDto n = new UserDto();
n.setName(name);
n.setSurname(surname);
n.setEmail(email);
userService.create(n);
return "User Saved in DB";
}

@SuppressWarnings({ "rawtypes", "unchecked" })
//@RequestMapping(value = "/fetchUser/{name}", method = RequestMethod.GET)
@GetMapping("/demo/first")
public ResponseEntity<UserDto> fetchUser(@PathVariable("name") String name) {
System.out.println(name);

try {
UserDto namefound = userService.findFirstByName(name);
System.out.println("Name found");
ResponseEntity<UserDto> user = new ResponseEntity<UserDto>(namefound, HttpStatus.OK);
return user;
} catch(NoResultException ne) {
System.out.println("User not found");
return new ResponseEntity("User not found with name : " + name, HttpStatus.NOT_FOUND);
}

}
}

UserService.java

package com.example.accessingdatamysql.service;

import org.springframework.stereotype.Service;

import com.example.accessingdatamysql.model.UserDto;
@Service
public interface UserService {

	UserDto findFirstByName(String name);
	
	void create(UserDto user);
    	
}

UserServiceImpl.java

package com.example.accessingdatamysql.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.example.accessingdatamysql.model.UserDto;
import com.example.accessingdatamysql.model.UserEntity;
import com.example.accessingdatamysql.repo.UserRepository;
import com.example.accessingdatamysql.util.UserMapper;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserRepository userRepository;

	@Autowired
	UserMapper mapper;

	@Override
	public UserDto findFirstByName(String name) {
		UserEntity entity = userRepository.findFirstByName(name);
		return mapper.toDtoMapper(entity);
	}

	@Override
	public void create(UserDto user) {
		UserEntity entity = mapper.toEntityMapper(user);
		userRepository.create(entity);
	}

}

UserMapper.java

package com.example.accessingdatamysql.util;

import org.mapstruct.Mapper;

import com.example.accessingdatamysql.model.UserDto;
import com.example.accessingdatamysql.model.UserEntity;



@Mapper(componentModel = "spring")
public interface UserMapper {	
	
	public UserEntity toEntityMapper (UserDto user);	
	public UserDto toDtoMapper (UserEntity userEntity);
	
}

UserRepository.java

package com.example.accessingdatamysql.repo;


import org.springframework.stereotype.Repository;

import com.example.accessingdatamysql.model.UserEntity;


@Repository
public interface UserRepository {
	UserEntity findFirstByName(String name);
	void create(UserEntity entity);
	
}

UserRepositoryImpl.java

package com.example.accessingdatamysql.service;

import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;

import org.springframework.stereotype.Component;

import com.example.accessingdatamysql.model.UserEntity;
import com.example.accessingdatamysql.repo.UserRepository;

@Component
public class UserRepositoryImpl implements UserRepository {

	private final EntityManager em;

	public UserRepositoryImpl(EntityManager entityManager) {
		this.em = entityManager;
	}

	@Override
	public UserEntity findFirstByName(String name) {
		CriteriaBuilder builder = em.getCriteriaBuilder();
		CriteriaQuery<UserEntity> criteria = builder.createQuery(UserEntity.class);
		Root<UserEntity> root = criteria.from(UserEntity.class);
		criteria.select(root).where(builder.equal(root.get("name"), name));
		criteria.orderBy(builder.asc(root.get("timestamp")));
		TypedQuery<UserEntity> query = em.createQuery(criteria).setMaxResults(1);
		return query.getSingleResult();

	}

	@Override
//	per la creazione//
	public void create(UserEntity entity) {
		em.persist(entity);
	}

}

UserDto.java

package com.example.accessingdatamysql.model;

import java.io.Serializable;
import java.sql.Timestamp;

public class UserDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7621330660870602403L;
	/**
	 * 
	 */

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Timestamp getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	private Timestamp timestamp;
	private String email;
	private String surname;

}

If you need I can also insert User.java and the pom, but the pom has no problems as the dependencies are all correct.