Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (95 sloc) 1.6 KB
entity Region {
regionId Long,
regionName String
}
entity Country {
countryId Long,
countryName String
}
entity Location {
locationId Long,
streetAddress String,
postalCode String,
city String,
stateProvince String
}
entity Department {
departmentId Long,
departmentName String required
}
entity Task {
taskId Long,
title String,
description String
}
/**
* The Employee entity.
*/
entity Employee {
employeeId Long,
/**
* The firstname attribute.
*/
firstName String,
lastName String,
email String,
phoneNumber String,
hireDate ZonedDateTime,
salary Long,
commissionPct Long
}
entity Job {
jobId Long,
jobTitle String,
minSalary Long,
maxSalary Long
}
entity JobHistory {
startDate ZonedDateTime,
endDate ZonedDateTime,
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{job} to Job
}
relationship OneToMany {
/**
* A relationship
*/
Department{employee} to
/**
* Another side of the same relationship
*/
Employee
}
relationship ManyToOne {
Employee{manager} to Employee
}
relationship OneToOne {
JobHistory{job} to Job
}
relationship OneToOne {
JobHistory{department} to Department
}
relationship OneToOne {
JobHistory{employee} to Employee
}
paginate JobHistory, Employee with infinite-scroll
paginate Job with pagination
dto Employee with mapstruct
service Employee with serviceClass