Program: 45106
Project: 45106
Buggy source:
private void assignPlayerToMap(){
  System.out.println("String_Node_Str");
  User nero=userDao.findByUsername("String_Node_Str");
  User ariovist=userDao.findByUsername("String_Node_Str");
  Map playground=mapDao.findByName("String_Node_Str");
  List<MapUser> users=new ArrayList<MapUser>();
  List<Square> nerosquares=new ArrayList<Square>();
  Square neroStartsquare=playground.getSquares().get(0);
  neroStartsquare.setIsHomeBase(true);
  nerosquares.add(neroStartsquare);
  MapUser neroMap=new MapUser();
  neroMap.setMap(playground);
  neroMap.setUser(nero);
  neroMap.setSquares(nerosquares);
  neroMap.setClayRessource(new StoredRessource(1500,SharedRessourceType.CLAY,new Date(),1.0,neroMap));
  neroMap.setWoodRessource(new StoredRessource(1500,SharedRessourceType.WOOD,new Date(),1.0,neroMap));
  neroMap.setGrainRessource(new StoredRessource(1500,SharedRessourceType.GRAIN,new Date(),1.0,neroMap));
  neroMap.setIronRessource(new StoredRessource(1500,SharedRessourceType.IRON,new Date(),1.0,neroMap));
  users.add(neroMap);
  List<Square> ariovistsquares=new ArrayList<Square>();
  Square ariovistStartsquare=playground.getSquares().get(4);
  ariovistStartsquare.setIsHomeBase(true);
  ariovistsquares.add(ariovistStartsquare);
  MapUser ariovistMap=new MapUser();
  ariovistMap.setMap(playground);
  ariovistMap.setUser(ariovist);
  ariovistMap.setSquares(ariovistsquares);
  ariovistMap.setClayRessource(new StoredRessource(1500,SharedRessourceType.CLAY,new Date(),1.0,ariovistMap));
  ariovistMap.setWoodRessource(new StoredRessource(1500,SharedRessourceType.WOOD,new Date(),1.0,ariovistMap));
  ariovistMap.setGrainRessource(new StoredRessource(1500,SharedRessourceType.GRAIN,new Date(),1.0,ariovistMap));
  ariovistMap.setIronRessource(new StoredRessource(1500,SharedRessourceType.IRON,new Date(),1.0,ariovistMap));
  users.add(ariovistMap);
  playground.setUsers(users);
  mapUserDao.beginTransaction();
  mapUserDao.insert(neroMap);
  mapUserDao.insert(ariovistMap);
  mapDao.insert(playground);
  squareDao.insert(neroStartsquare);
  squareDao.insert(ariovistStartsquare);
  mapUserDao.commitTransaction();
}

Fixed version (ground truth):
private void assignPlayerToMap(){
  System.out.println("String_Node_Str");
  User nero=userDao.findByUsername("String_Node_Str");
  User ariovist=userDao.findByUsername("String_Node_Str");
  Map playground=mapDao.findByName("String_Node_Str");
  List<MapUser> users=new ArrayList<MapUser>();
  List<Square> nerosquares=new ArrayList<Square>();
  Square neroStartsquare=playground.getSquares().get(0);
  neroStartsquare.setIsHomeBase(true);
  nerosquares.add(neroStartsquare);
  MapUser neroMap=new MapUser();
  neroMap.setMap(playground);
  neroMap.setUser(nero);
  neroMap.setSquares(nerosquares);
  neroMap.setClayRessource(new StoredRessource(15000,SharedRessourceType.CLAY,new Date(),1.0,neroMap));
  neroMap.setWoodRessource(new StoredRessource(15000,SharedRessourceType.WOOD,new Date(),1.0,neroMap));
  neroMap.setGrainRessource(new StoredRessource(15000,SharedRessourceType.GRAIN,new Date(),1.0,neroMap));
  neroMap.setIronRessource(new StoredRessource(15000,SharedRessourceType.IRON,new Date(),1.0,neroMap));
  users.add(neroMap);
  List<Square> ariovistsquares=new ArrayList<Square>();
  Square ariovistStartsquare=playground.getSquares().get(4);
  ariovistStartsquare.setIsHomeBase(true);
  ariovistsquares.add(ariovistStartsquare);
  MapUser ariovistMap=new MapUser();
  ariovistMap.setMap(playground);
  ariovistMap.setUser(ariovist);
  ariovistMap.setSquares(ariovistsquares);
  ariovistMap.setClayRessource(new StoredRessource(1500,SharedRessourceType.CLAY,new Date(),1.0,ariovistMap));
  ariovistMap.setWoodRessource(new StoredRessource(1500,SharedRessourceType.WOOD,new Date(),1.0,ariovistMap));
  ariovistMap.setGrainRessource(new StoredRessource(1500,SharedRessourceType.GRAIN,new Date(),1.0,ariovistMap));
  ariovistMap.setIronRessource(new StoredRessource(1500,SharedRessourceType.IRON,new Date(),1.0,ariovistMap));
  users.add(ariovistMap);
  playground.setUsers(users);
  mapUserDao.beginTransaction();
  mapUserDao.insert(neroMap);
  mapUserDao.insert(ariovistMap);
  mapDao.insert(playground);
  squareDao.insert(neroStartsquare);
  squareDao.insert(ariovistStartsquare);
  mapUserDao.commitTransaction();
}