Auto-generate some getters in model objects