Gave each entity property a type.

Gave entities convenience getters/setter for the properties so getProperties is not needed anymore.