Hello everybody!

I trying to delete a entity child in a relationship of 1 to N inside a
FOR LOOP.

So here is code part:

for (byte j = 0; j < matrDayWeek.length; j++) {
      if (matrDayWeek[j] == 1) {
        hor.setWeek(j);
        hor.getWeek().getDayweek(j).setNumHorarios(matrNumHorarios[j]);
        
hor.getSemana().getDiaSemana(j).setTempoPrimeiroHorario(matrHoraIni[j]);
      } else {
        if (hor.existeSemana(j)) {
        hor.getSemana().removeDia(j);
        DiaSemana d = hor.getSemana().getDiaSemana(j);
                System.out.println("d = null? = " + d);
//pm.deletePersistent(d);
                                                                
System.out.println("*******Deletado diaSemana [" + j + "]");
                                                        }
                                                }
                                        }

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to