-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HQL update query combined and the model object
PostPosted: Fri Aug 03, 2007 11:48 am 
Newbie

Joined: Fri Aug 03, 2007 11:15 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.