-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjhipster-jdl.jh
executable file
·55 lines (53 loc) · 1.07 KB
/
jhipster-jdl.jh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
entity Vehicle {
make String,
model String,
year Integer,
mileage Long,
vin String,
hasPolicy Boolean,
policyNumber Long
}
entity Driver {
firstName String,
lastName String,
birthDate LocalDate,
licenseDate LocalDate,
pastAccident Integer,
zipCode Long,
disable Boolean,
maritalStatus Boolean,
ownsHome Boolean,
militaryService Boolean
}
entity InsuranceDetails {
level InsuranceType,
annualPremium BigDecimal,
injuryLiability Boolean,
propertyLiability Boolean,
uninsuredMotoristInjury Boolean,
uninsuredMotoristProperty Boolean
}
entity Claim {
injuryInvolved Boolean,
accidentDate LocalDate,
accidentTime Instant,
accidentCity String,
accidentState String,
passengersInCars Boolean,
damageLocation String
}
enum InsuranceType {
NONE, STATEMINIMUM, LIABILITY, COMPREHENSIVE
}
relationship OneToOne {
Claim{vehicle} to Vehicle
}
relationship OneToMany {
Driver{claim} to Claim
}
relationship OneToMany {
Driver{vehicle} to Vehicle
}
relationship OneToOne {
Vehicle{insurancedetails} to InsuranceDetails
}