Once again thanks for helping
Well, i got it without the "[]"
good!
but now i only get, in my JList, the first child...
i tried the older code - commented - and a new one inspired in what you told me
i wonder if its because of
Code:
lista1.get(0)
should i loop?
here's my relevant code:
Code:
/*for (int i = 0; i < visual.lstDetalhe.getModel().getSize(); i++) {
Detalhe detalhe = new Detalhe();
visual.lstDetalhe.setSelectedIndex(i);
String nova = visual.lstDetalhe.getSelectedValue().toString();
detalhe.setEstrategia(nova);*/
Detalhe detalhe = new Detalhe(); // adiciono ao Set
rel.getTurma().adicionarDetalhe(detalhe);
String query1 = "select elements(rel.turma.detalhe) from Relatorio as rel where rel.turma.ano = " +
oano +
" AND turma = " + aturma;
List lista1 = sess.find(query);
detalhe = (Detalhe) lista1.get(0);
//}
Can you please help me once more?
thanks in advance