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
|