• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
model insights (inheritance)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

model insights (inheritance)


  • Subject: model insights (inheritance)
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 28 Oct 2015 08:51:34 -0400

I am starting a simple CMS for a friend. He needs to track donations. You know a phone bank and people taking money.

Anyway, I have two kinds of Person. Employees that take money and Donors that give. Both are Person.

I created a model for a Person then Subclasses for Employee and Donor. I am using a qualifier isEmployee=1 and isDonor=1. Obviously then I have attributes isEmployee and isDonor in Person.  A Person could be both an Employee and a Donor.

Would you do this, or would you model separate Entities for Employee and Donar?





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: model insights (inheritance)
      • From: Ricardo Parada <email@hidden>
    • Re: model insights (inheritance)
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: Framework needs access to Application - How?
  • Next by Date: Re: model insights (inheritance)
  • Previous by thread: Re: Apache 2.4 binary anyone?
  • Next by thread: Re: model insights (inheritance)
  • Index(es):
    • Date
    • Thread