private static void persistEmployee() {
Employee employee = new Employee("Joe", "IT",
Phone.cell("111-111-1111"), Phone.work("222-222-2222"));
entityManager.getTransaction().begin();
entityManager.persist(employee);
entityManager.getTransaction().commit();
//detach to remove it from entityManager cache
entityManager.detach(employee);
}