PersonnelBi1ToM personnel = new PersonnelBi1ToM();
personnel.setPersonId("bionetomany_1");
personnel.setPersonName("Amresh");
Set<HabitatBi1ToM> addresses = new HashSet<HabitatBi1ToM>();
HabitatBi1ToM address1 = new HabitatBi1ToM();
address1.setAddressId("bionetomany_a");
address1.setStreet("AAAAAAAAAAAAA");
HabitatBi1ToM address2 = new HabitatBi1ToM();
address2.setAddressId("bionetomany_b");
address2.setStreet("BBBBBBBBBBB");
addresses.add(address1);
addresses.add(address2);
personnel.setAddresses(addresses);
dao.insert(personnel);