Last active
November 5, 2015 10:07
-
-
Save up1/682c3a8ad26a131461c6 to your computer and use it in GitHub Desktop.
miniCRM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Company { | |
public int id; | |
public String name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Company { | |
public int id; | |
public String name; | |
public List<Contact> contacts; | |
} | |
class Contact { | |
public int contactId; | |
public int companyId; | |
public String name; | |
public String email; | |
public String phoneNumber; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Company { | |
public int id; | |
public String name; | |
public List<Contact> contacts; | |
public List<Engagement> engagements; | |
} | |
class Engagement { | |
public int engagementId; | |
public int companyId; | |
public String name; | |
public String description; | |
public Date startDate; | |
public Date finishDate; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Company { | |
public int id; | |
public String name; | |
} | |
class Engagement { | |
public int engagementId; | |
public int companyId; | |
public String name; | |
public String description; | |
public Date startDate; | |
public Date finishDate; | |
} | |
class Contact { | |
public int contactId; | |
public int companyId; | |
public String name; | |
public String email; | |
public String phoneNumber; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CompanyWithContacts { | |
public Company company; | |
public List<Contact> contacts; | |
} | |
class CompanyWithContactsAndEngagements { | |
public Company company; | |
public List<Contact> contacts; | |
public List<Engagement> engagements; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment