commented out persistence provider in persistence.xml and added JPA annotations to transaction class