After spending many hours searching the web, trying to find the most efficient way to use Spring, JPA and Hibenate…