This repository was archived by the owner on May 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from ritosilva/master
integrate persistence into the solution of the second part
- Loading branch information
Showing
102 changed files
with
2,238 additions
and
1,815 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ infer-out | |
*.iml | ||
.idea | ||
.DS_Store | ||
fenix-framework.properties |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package pt.ulisboa.tecnico.softeng.activity.domain; | ||
|
||
class ActivityProvider { | ||
String name; | ||
String code; | ||
} | ||
|
||
relation DomainRootHasActivityProviders { | ||
.pt.ist.fenixframework.DomainRoot playsRole root { | ||
multiplicity 1..1; | ||
} | ||
ActivityProvider playsRole activityProvider { | ||
multiplicity 0..*; | ||
} | ||
} | ||
|
||
class Activity { | ||
String name; | ||
String code; | ||
int minAge; | ||
int maxAge; | ||
int capacity; | ||
} | ||
|
||
relation ActivityProviderHasActivities { | ||
ActivityProvider playsRole activityProvider { | ||
multiplicity 1..1; | ||
} | ||
Activity playsRole activity { | ||
multiplicity 0..*; | ||
} | ||
} | ||
|
||
class ActivityOffer { | ||
LocalDate begin; | ||
LocalDate end; | ||
int capacity; | ||
} | ||
|
||
relation ActivityHasActivityOffers { | ||
Activity playsRole activity { | ||
multiplicity 1..1; | ||
} | ||
ActivityOffer playsRole activityOffer { | ||
multiplicity 0..*; | ||
} | ||
} | ||
|
||
class Booking { | ||
String reference; | ||
String cancel; | ||
LocalDate cancellationDate; | ||
} | ||
|
||
relation ActivityOfferHasBookings { | ||
ActivityOffer playsRole activityOffer { | ||
multiplicity 1..1; | ||
} | ||
Booking playsRole booking { | ||
multiplicity 0..*; | ||
} | ||
} | ||
|
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
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
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
Oops, something went wrong.