Change Hibernate and Spring versions. Add Spring-orm. hibernate and PostgreSQL driver dependencies.