-->
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: changing beans from dao results in automatic update?
PostPosted: Mon Dec 18, 2006 3:05 pm 
Beginner
Beginner

Joined: Mon Jun 19, 2006 4:10 pm
Posts: 27
Hi

this is wrt hibernate 2, using spring's gethibernatetemplate functionality...

we use a dao to get a list of rows (table dump), each row is a bean.

Then, we iterate thru the list and format one of the properties on the bean.

we take this list and pass it to a jsp.

Then we use the same dao to get sums for all the numerical columns (last row in jsp is sums of the dump, for anything thats a number).

when the second call occurs, it errors out saying there is a data-truncation sql error, trying to update the class that is the beans in the first list.

So hibernate must be trying to update every row in the db, since I changed a property on the bean for presentation purposes. Is there any way to get it not to do this?

thanx


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.