private void markAsInitiated() { Properties twentyFourDatabaseState = new Properties(); twentyFourDatabaseState.setDb("basic"); twentyFourDatabaseState.setState("Initiated"); EntityTransaction tx = em.getTransaction(); tx.begin(); em.persist(twentyFourDatabaseState); tx.commit(); }