sortable Customer+Contact

This commit is contained in:
Michael Hoennig 2019-04-02 15:33:20 +02:00
parent 79f59fb323
commit 539e3c48fd

View File

@ -4,12 +4,22 @@ entity Customer {
prefix String required unique pattern(/[a-z][a-z0-9]+/), prefix String required unique pattern(/[a-z][a-z0-9]+/),
} }
filter Customer
paginate Customer with infinite-scroll
service Customer with serviceClass
dto Customer with mapstruct
entity Contact { entity Contact {
firstName String required maxlength(80), firstName String required maxlength(80),
lastName String required maxlength(80), lastName String required maxlength(80),
email String required maxlength(80) email String required maxlength(80)
} }
filter Contact
paginate Contact with infinite-scroll
service Contact with serviceClass
dto Contact with mapstruct
enum CustomerContactRole { enum CustomerContactRole {
CONTRACTUAL, CONTRACTUAL,
TECHNICAL, TECHNICAL,
@ -20,11 +30,17 @@ entity CustomerContact {
role CustomerContactRole required role CustomerContactRole required
} }
service CustomerContact with serviceClass
dto CustomerContact with mapstruct
entity Membership { entity Membership {
sinceDate LocalDate required, sinceDate LocalDate required,
untilDate LocalDate untilDate LocalDate
} }
service Membership with serviceClass
dto Membership with mapstruct
enum ShareAction { enum ShareAction {
SUBSCRIPTION, SUBSCRIPTION,
CANCELLATION CANCELLATION