borjagat wrote:
I attach the mappings files:
The code is:
accion.Estado.Id = ESTADOS.NUEVA;
incidencia.Acciones.Add(accion);
I saved in the DB, but i would like to show immediately the Descripcion of the Estado that is always stored in the database so i do :
incidencia.Accion:Estado.Description i get a null because the property is not filled. What can i do? If i do a get or load the data is get from the cache. I have tried the clean the sesion without success.
Try session.refresh(incidencia)...
If this doesn't work please include all code between session.open and session.close.