This is my xml file :
I have added dependencies of H2 database and Hibernate in my file
to add Hibernate dependency I went to hibernate's homepage hibernate.org and from there followed this getting started guide
of how to Obtain Hibernate using
Maven Dependency which showed me the code snippet, I added this snippet inside my dependency tag in my xml file
And to add H2 database dependency I took help of mvnrepository.com
Did I do it right ??