I am working on a springboot application in a multi-threading environment where I am using Hibernate with javax.persistence.EntityManager to access database