Skip to content

Commit

Permalink
Add JDL Model RH
Browse files Browse the repository at this point in the history
  • Loading branch information
jhipster-bot committed Feb 16, 2018
1 parent d2c760d commit ab1ba8f
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions rh.jh
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

entity User {
name String,
password String,
}

entity Role {
name Role
}

/**
* The Employee entity.
*/
entity Employee {
firstName String,
lastName String,
email String,
hireDate Instant
}

entity Congee {
date Instant
}


entity Department {
departmentName String required
}



entity JobHistory {
startDate Instant,
endDate Instant,
language Language
}

enum Role {
USER, DRH, DG, DGA
}

relationship OneToOne {
User{employee} to Employee
}

relationship OneToOne {
User{role} to Role
}

relationship OneToOne {
Employee{department} to Department
}

relationship OneToMany {
Department{employees} to Employee
}



// defining multiple OneToMany relationships with comments
relationship OneToMany {
Employee{job} to Job,
/**
* A relationship
*/
Department{employee} to
/**
* Another side of the same relationship
*/
Employee
}

relationship ManyToOne {
Employee{manager} to Employee
}


// Set pagination options
// paginate JobHistory, Employee with infinite-scroll
// paginate Job with pagination
dto * with mapstruct

// Set service options to all except few
service all with serviceImpl except Employee, Job
// Set an angular suffix
angularSuffix * with mySuffix

0 comments on commit ab1ba8f

Please sign in to comment.