Last active
May 22, 2020 15:09
-
-
Save dmi3coder/a0cca9e0f7e276dbd29be8ad252b7e68 to your computer and use it in GitHub Desktop.
Default JDL example from https://start.jhipster.tech/jdl-studio/
This file contains hidden or 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
entity Region { | |
regionName String | |
} | |
entity Country { | |
countryName String | |
} | |
entity Location { | |
streetAddress String, | |
postalCode String, | |
city String, | |
stateProvince String | |
} | |
entity Department { | |
departmentName String required | |
} | |
entity Task { | |
title String, | |
description String | |
} | |
entity Employee { | |
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} | |
} | |
relationship OneToMany { | |
Employee to Job{employee}, | |
Department to | |
Employee{department} | |
} | |
relationship ManyToOne { | |
Employee{manager} to Employee | |
} | |
relationship OneToOne { | |
JobHistory{job} to Job, | |
JobHistory{department} to Department, | |
JobHistory{employee} to Employee | |
} | |
paginate JobHistory, Employee with infinite-scroll | |
paginate Job with pagination | |
service all with serviceImpl except Employee, Job |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment