jpa+hibernate单元测试publicclassPersonTest{@BeforeClasspublicstaticvoidsetUpBeforeClass()throwsException{}@Testpublicvoidsave(){EntityManagerFactoryfactory=Persistence.createEntityManagerFactory("itcast");EntityManagerem=factory.createEntityManager();em.getTransaction().begin();em.per