posted 20 years ago
I would like to ask for some design advice.
Both Company and Outlet are Hibernate persistent classes.
Whenever a sale is made at the Outlet, we will increase the sale value and counts in tandem for the Outlet. I would like to know how you whether: is it good to also update the totals in Company as well during a sale tx ? In general how do you handle derived totals like this ? In Hibernate, how would you propogate changes like these ?
Regards,
Pho
[ March 18, 2004: Message edited by: Pho Tek ]