*/
public static void makePersistent() {
System.out.println("***************makePersistent*****************");
//create a country and 3 addresses
Country france = new Country("fr", "France");
Address address1 = new Address("rue de Mons", "Avignon", france);
Address address2 = new Address("impasse St Jacques", "Clermont", france);
Address address3 = new Address("rue Laffiteau", "Paris", france);
PersistenceManager pm = pmf.getPersistenceManager();
//store the graph defined above in the datastore
pm.currentTransaction().begin();
//make persistent the 3 addresses:
// all the references reachable from these objects will be made persistent
System.out.println("make persistent the address1 " + address1.toString());
pm.makePersistent(address1);
System.out.println("make persistent the address2 " + address2.toString());
pm.makePersistent(address2);
System.out.println("make persistent the address3 " + address3.toString());
pm.makePersistent(address3);
pm.currentTransaction().commit();
pm.close();
}