I'm getting the following error when running a find method twice:
---------------------------------------------------------------
identifier of an instance of br.gov.mec.semtec.sig.dominio.instituicao.InfraEstruturaFisicaInstituicao altered from XXXX to null
---------------------------------------------------------------
where XXXX is the toString() of a member from InfraEstruturaFisicaInstituicao .
I'm looking for my entity calling
(...)
List list = criteria.list();
(...)
This list gets just one entity (size = 1)
Btw, if I do
(...)
List list = criteria.list();
session.clear();
(...)
everything works well.
I believe it's not a good strategy, since it's gonna evict all objects from session everytime, blocking caching etc.
Suggestions ?
[]s
Al
|