-->
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: Hibernate update question
PostPosted: Mon Nov 29, 2010 11:44 pm 
Newbie

Joined: Mon Nov 29, 2010 11:35 pm
Posts: 1
Hi Friend,

we are using spring mvc with hibernate. there is a very simple question for hibernate, and it is very interesting:

in controller:
Code:
                 Customer cust  = CustomerDAO.loadCustomer(custId);

                 cust.setSalesRevenue(10000);

                 //we do not call any saveUpdate method

                 return ModelAndView("viewName");


Even we do not call save method, the new value 10000 is saved into DB, we cannot figure out why it happens. Can anyone give a hint?

thanks very much.


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.