I need to pass the value of the variable sgEstado
to the other class but I can not, the value is in return
when debug , but I can not make the value quit in the other class. p>
ArrayList estados;
try {
Session session = InitSessionFactory.getInstance().getCurrentSession();
estados = (ArrayList) session.createCriteria(FilialComplementoTO.class).addOrder(Order.asc("sgEstado")).list();
} catch (Exception e) {
Logger.getLogger(this.getClass().getName()).error(e.getMessage());
throw new IntegrationException(e);
}
return estados;
}
Second code, if the value of the sgEstado exit in the "passed" below is fine, Thankful.
try {
ctx.get(FilialComplementoTO.FILIAL_COMPLEMENTO_KEY);
//FilialComplementoTO filialComplementoTO = (FilialComplementoTO) ctx.get(FilialComplementoTO.FILIAL_COMPLEMENTO_KEY);
LocalizarLojasCompositeEntity localizarLojasCompositeEntity = new LocalizarLojasCompositeEntity();
localizarLojasCompositeEntity.findEstadosBySgEstado();
System.out.println(localizarLojasCompositeEntity.findEstadosBySgEstado());
System.out.println("passou");
}