Dear,
I have a problem with a HQL update query combined with the manipulation of the object model.
Here is the code which poses a problem :
EpisodeDeSoinsDAODef episodeDeSoinsDAO = BeanFinder.getInstance().getEpisodeDeSoinsDAO();
EpisodeDeSoins eds = episodeDeSoinsDAO.findByPK(new Long(235709));
eds.setSortieDate("yoyo");
episodeDeSoinsDAO.save(eds);
episodeDeSoinsDAO.executeUndo("Update EpisodeDeSoins set sortieDate=null");
n.b. : episodeDeSoinsDAO is a bean defined with Spring
Finally the value will be "yoyo" even if the last update statement set this field to null.
My question is : there is a mean to finally have this field setted to null?
Perhaps you'll find this continuation of operations strange.
But unfortunately the circumstances are such as I do not have the choice.
Have a nice week-end,
Philippe
|