generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Top level change to support multiple entities per file...
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 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
34 changes: 34 additions & 0 deletions
34
legend-sdlc-entity-maven-plugin/src/test/resources/single-file-pure-model/singleFile.pure
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,34 @@ | ||
Association model::domain::associations::Employment | ||
{ | ||
employer: model::domain::Firm[*]; | ||
employees: model::domain::Person[*]; | ||
} | ||
|
||
Class model::domain::classes::Address | ||
{ | ||
type: model::domain::enums::AddressType[1]; | ||
address: String[1]; | ||
} | ||
|
||
Class model::domain::classes::EntityWithAddresses | ||
{ | ||
addresses: model::domain::classes::Address[*]; | ||
} | ||
|
||
Class model::domain::classes::Firm extends model::domain::classes::EntityWithAddresses | ||
{ | ||
legalName: String[1]; | ||
commonName: String[0..1]; | ||
founded: StrictDate[0..1]; | ||
} | ||
|
||
Class model::domain::classes::Person extends model::domain::classes::EntityWithAddresses | ||
{ | ||
firstName: String[1]; | ||
lastName: String[1]; | ||
} | ||
|
||
Enum model::domain::enums::AddressType | ||
{ | ||
STREET, CITY, COUNTRY | ||
} |
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