nordborg wrote:
Hibernate will call your itemList.getTotal() method for all loaded objects and save that value in the database. The getTotal() method should return the same value that was passed to setTotal(). If you need a method that sums the total of all 'descendants' you should call this something else. Eg. getSummedTotal().
Hi nordborg ,
Thanks for your help, I wonder if you can share some reference about this automatic staff in Hibernate with me? so I can go and further understand how to use it.
[/code]