I'm getting the exception: org.postgresql.util.PSQLException relation doesn't exist when trying to persist a player object in the player table but I thought that the persist method is able to create the table
em.getTransaction().begin();
p = new Player(playerName);
em.persist(p);
em.getTransaction().commit();