Setting up JPA with Hibernate as provider and mysql as database.