Hi!
I'm having some trouble with hibernate. Take a look:
Code:
Collection ocorrencias = session.list("from OcorrenciaVO as o where o.statusControle="+ codStatus + " order by o.id");
Iterator i = ocorrencias.iterator();
while(i.hasNext())
{
Ocorrencia o = (Ocorrencia)i.next();
String fileName = o.getImagePath();
if(fileName == null)
{
//at this point, I get the imagePath property using JDBC and, for my
//surprise, the field has a value (it is not null).
//Like this:
//stmt.executeQuery("select * from ocorrencia where id=" + o.getId()");
}
}
If the field has a value in the database, why hibernate is assuming null in imagePath property?
The database is huge! And this situation happens only a few times.
Thanks!