-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[plugins/backend-application-default] adds
addRelationshipsById
to …
…control whether to add a read/write relationship by id when mapping relationships between aggregate (not recommended) keeping the relationship by object readonly.
- Loading branch information
Showing
6 changed files
with
84 additions
and
21 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
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
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
31 changes: 31 additions & 0 deletions
31
...rc/main/resources/io/zenwave360/sdk/resources/zdl/customer-address-one-to-one-maps-id.zdl
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,31 @@ | ||
/** | ||
* Global javadoc comment | ||
*/ | ||
|
||
MAX_LENGTH=100 | ||
|
||
/** | ||
* Customer javadoc comment | ||
*/ | ||
@aggregate | ||
entity Customer { | ||
username String required unique minlength(3) /** username javadoc comment */ | ||
email String required unique /** email javadoc comment */ | ||
} | ||
|
||
enum AddressType { HOME(1) /** home description */, WORK(1) /** work description */ } | ||
|
||
@aggregate | ||
entity Address { | ||
street String /** street javadoc comment */ | ||
city String /** city javadoc comment */ | ||
state String /** state javadoc comment */ | ||
zip String /** zip javadoc comment */ | ||
type AddressType /** address type is an enum */ | ||
} | ||
|
||
relationship OneToOne { | ||
Customer{address} to @Id Address{customer} | ||
} | ||
|
||
service Customer,Address with CustomerService |