PersonB1M personBi1M = new PersonB1M();
personBi1M.setPersonId("personBi1M1");
personBi1M.setPersonName("impetus-opensource");
AddressB1M addressBi1M = new AddressB1M();
addressBi1M.setAddressId("addrBi1M1");
addressBi1M.setStreet("meri gali");
Set<AddressB1M> addresses = new HashSet<AddressB1M>();
addresses.add(addressBi1M);
// personBi1M.setAddresses(addresses);
AddressB1M addressBi1M_copy = new AddressB1M();
addressBi1M_copy.setAddressId("addrBi1M2");
addressBi1M_copy.setStreet("meri gali");
addresses.add(addressBi1M_copy);
personBi1M.setAddresses(addresses);
em.persist(personBi1M);