for (int i = 0; i < farmVidalList.size(); i++) {
Pair<ClassificationFarm, Integer> pair = farmVidalList.get(i);
//System.err.println("Added : " + pair);
manager.refresh(pair.first);
VidalFarmPK pk = new VidalFarmPK(pair.first.getId(), pair.second);
VidalFarm r = new VidalFarm();
r.setKey(pk);
manager.persist(r);
}
manager.flush();
}