ese-unibe-ch/ese2011-team3 — Issue #55: Make every property of the models private and provide getter/setter.
Author: poljpocket
Created: 2011-10-20 07:36:15+00:00
State: open
Labels: backend, MEDIUM

We decided to make all instance variables private to be able to control the data that is being saved/read to/from our persistence.

This solves the big issue of immutability of java.util.Date we had last week. We now can use Jodatime in Event and just pass java.util.Date to persistence via the getter and also read java.util.Date from it. In our app however, we can user Jodatime which is being built from the java.util.Date objects.

for persistence:
- (void)setDate(java.util.Date)
- (java.util.Date)getDate()

for live use:
- (void)setDateTime(JodaTime)
- (JodaTime)getDateTime()