I have a class called employee. I have several private fields (i.e. mHiredDate, mSickDays, mVacationDays, etc.). I instantiate employee objects thru out my website application. When I make a change to the private fields using the public property set method, is it a better practice to make the changes thru out the session and save the values back to the database near the end of the session or make the set make the change to the database everytime it is called? Does the same go for get ? Do I have my get goto the database and grab the value everytime I need it ?
I hope my question is clear enough.
View Complete Post