3940414243444546474849
EntityManager em = emf.createEntityManager(); try { EntityTransaction tx = em.getTransaction(); tx.begin(); ShipRate rate = new ShipRate(1000, new BigDecimal(20.5)); em.persist(rate); tx.commit(); em.close(); em = emf.createEntityManager();