From 63efe5c6eb5906126f239e0a7b749568d85489c7 Mon Sep 17 00:00:00 2001 From: JHipster Bot Date: Thu, 3 Dec 2020 12:28:33 +0000 Subject: [PATCH 1/2] Add JDL Model `vrushAndCo` See https://start.jhipster.tech/jdl-studio/#!/view/a15ee80f-4475-413e-b787-3a9c35465a7b --- vrushandco.jh | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 vrushandco.jh diff --git a/vrushandco.jh b/vrushandco.jh new file mode 100644 index 0000000..e55c8b5 --- /dev/null +++ b/vrushandco.jh @@ -0,0 +1,115 @@ + +entity Region { + regionName String +} + +entity Country { + countryName String +} + +// an ignored comment +/** not an ignored comment */ +entity Location { + streetAddress String, + postalCode String, + city String, + stateProvince String +} + +entity Department { + departmentName String required +} + +/** + * Task entity. + * @author The JHipster team. + */ +entity Task { + title String, + description String +} + +/** + * The Employee entity. + */ +entity Employee { + /** + * The firstname attribute. + */ + firstName String, + lastName String, + email String, + phoneNumber String, + hireDate Instant, + salary Long, + commissionPct Long +} + +entity Job { + jobTitle String, + minSalary Long, + maxSalary Long +} + +entity JobHistory { + startDate Instant, + endDate Instant, + language Language +} + +enum Language { + FRENCH, ENGLISH, SPANISH +} + +relationship OneToOne { + Country{region} to Region +} + +relationship OneToOne { + Location{country} to Country +} + +relationship OneToOne { + Department{location} to Location +} + +relationship ManyToMany { + Job{task(title)} to Task{job} +} + +// defining multiple OneToMany relationships with comments +relationship OneToMany { + Employee to Job{employee}, + /** + * A relationship + */ + Department to + /** + * Another side of the same relationship + */ + Employee{department} +} + +relationship ManyToOne { + Employee{manager} to Employee +} + +// defining multiple oneToOne relationships +relationship OneToOne { + JobHistory{job} to Job, + JobHistory{department} to Department, + JobHistory{employee} to Employee +} + +// Set pagination options +paginate JobHistory, Employee with infinite-scroll +paginate Job with pagination + +// Use Data Transfer Objects (DTO) +// dto * with mapstruct + +// Set service options to all except few +service all with serviceImpl except Employee, Job + +// Set an angular suffix +// angularSuffix * with mySuffix From e7b83c8ae5cbda455240713b6f55c4a7854bf872 Mon Sep 17 00:00:00 2001 From: JHipster Bot Date: Thu, 3 Dec 2020 12:28:36 +0000 Subject: [PATCH 2/2] Generate entities from JDL Model `vrushAndCo` See https://start.jhipster.tech/jdl-studio/#!/view/a15ee80f-4475-413e-b787-3a9c35465a7b