Skip to content

Commit

Permalink
use generate-sample at ios workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jun 6, 2024
1 parent c0361fa commit 989d2db
Show file tree
Hide file tree
Showing 9 changed files with 224 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .blueprint/generate-sample/generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class extends BaseGenerator {
get [BaseGenerator.LOADING]() {
return this.asLoadingTaskGroup({
async loadCommand() {
await this.loadCurrentJHipsterCommandConfig(undefined);
await this.loadCurrentJHipsterCommandConfig(this);
},
});
}
Expand Down
18 changes: 12 additions & 6 deletions .blueprint/generate-sample/templates/samples/21points-jwt.jdl
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,36 @@
*/

application {
config {
authenticationType jwt
skipClient true
devDatabaseType h2Disk
}
entities *
config {
authenticationType jwt
skipClient true
devDatabaseType h2Disk
creationTimestamp 1617901618886
jwtSecretKey "ZjY4MTM4YjI5YzMwZjhjYjI2OTNkNTRjMWQ5Y2Q0Y2YwOWNmZTE2NzRmYzU3NTMwM2NjOTE3MTllOTM3MWRkMzcyYTljMjVmNmQ0Y2MxOTUzODc0MDhhMTlkMDIxMzI2YzQzZDM2ZDE3MmQ3NjVkODk3OTVmYzljYTQyZDNmMTQ="
}
entities *
}

@ChangelogDate(20240101000000)
entity BloodPressure {
timestamp ZonedDateTime required
systolic Integer required
diastolic Integer required
}
@ChangelogDate(20240102000000)
entity Weight {
timestamp ZonedDateTime required
weight Double required
}
@ChangelogDate(20240103000000)
entity Points {
date LocalDate required
exercise Integer
meals Integer
alcohol Integer
notes String maxlength(140)
}
@ChangelogDate(20240105000000)
entity Preferences {
weeklyGoal Integer required min(10) max(21)
weightUnits Units required
Expand Down
86 changes: 48 additions & 38 deletions .blueprint/generate-sample/templates/samples/app-jwt.jdl
Original file line number Diff line number Diff line change
@@ -1,73 +1,83 @@
application {
config {
authenticationType jwt
skipClient true
devDatabaseType h2Disk
}
entities *
config {
authenticationType jwt
creationTimestamp 1617901618886
jwtSecretKey "ZjY4MTM4YjI5YzMwZjhjYjI2OTNkNTRjMWQ5Y2Q0Y2YwOWNmZTE2NzRmYzU3NTMwM2NjOTE3MTllOTM3MWRkMzcyYTljMjVmNmQ0Y2MxOTUzODc0MDhhMTlkMDIxMzI2YzQzZDM2ZDE3MmQ3NjVkODk3OTVmYzljYTQyZDNmMTQ="
skipClient true
devDatabaseType h2Disk
}
entities *
}

@ChangelogDate(20240101000000)
entity Region {
regionName String
regionName String
}

@ChangelogDate(20240102000000)
entity Country {
countryName String
countryName String
}

@ChangelogDate(20240103000000)
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
streetAddress String
postalCode String
city String
stateProvince String
}

@ChangelogDate(20240104000000)
entity Department {
departmentName String required
departmentPic ImageBlob
departmentDescription TextBlob
departmentInfoPdf Blob
departmentName String required
departmentPic ImageBlob
departmentDescription TextBlob
departmentInfoPdf Blob
}

@ChangelogDate(20240105000000)
entity Task {
title String
description String
title String
description String
}

@ChangelogDate(20240106000000)
entity Employee {
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
}

@ChangelogDate(20240107000000)
entity Job {
jobTitle String
minSalary Long
maxSalary Long
jobTitle String
minSalary Long
maxSalary Long
}

@ChangelogDate(20240108000000)
entity JobHistory {
startDate Instant
endDate Instant
language Language
startDate Instant
endDate Instant
language Language
}

enum Language {
FRENCH, ENGLISH, SPANISH
}

relationship ManyToMany {
Job{task(title)} to Task{job(jobTitle)}
Job{task(title)} to Task{job(jobTitle)}
}

relationship OneToMany {
Employee{job(jobTitle)} to Job{employee(email)}
Department{employee(email)} to
Employee{department(departmentName)}
Employee{job(jobTitle)} to Job{employee(email)}
Department{employee(email)} to
Employee{department(departmentName)}
}

relationship ManyToOne {
Expand All @@ -78,9 +88,9 @@ relationship ManyToOne {
}

relationship OneToOne {
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
}

paginate JobHistory, Employee with infinite-scroll
Expand Down
86 changes: 48 additions & 38 deletions .blueprint/generate-sample/templates/samples/app-oauth2.jdl
Original file line number Diff line number Diff line change
@@ -1,73 +1,83 @@
application {
config {
authenticationType oauth2
skipClient true
devDatabaseType h2Disk
}
entities *
config {
authenticationType oauth2
skipClient true
devDatabaseType h2Disk
creationTimestamp 1617901618886
jwtSecretKey "ZjY4MTM4YjI5YzMwZjhjYjI2OTNkNTRjMWQ5Y2Q0Y2YwOWNmZTE2NzRmYzU3NTMwM2NjOTE3MTllOTM3MWRkMzcyYTljMjVmNmQ0Y2MxOTUzODc0MDhhMTlkMDIxMzI2YzQzZDM2ZDE3MmQ3NjVkODk3OTVmYzljYTQyZDNmMTQ="
}
entities *
}

@ChangelogDate(20240101000000)
entity Region {
regionName String
regionName String
}

@ChangelogDate(20240102000000)
entity Country {
countryName String
countryName String
}

@ChangelogDate(20240103000000)
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
streetAddress String
postalCode String
city String
stateProvince String
}

@ChangelogDate(20240104000000)
entity Department {
departmentName String required
departmentPic ImageBlob
departmentDescription TextBlob
departmentInfoPdf Blob
departmentName String required
departmentPic ImageBlob
departmentDescription TextBlob
departmentInfoPdf Blob
}

@ChangelogDate(20240105000000)
entity Task {
title String
description String
title String
description String
}

@ChangelogDate(20240106000000)
entity Employee {
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
}

@ChangelogDate(20240107000000)
entity Job {
jobTitle String
minSalary Long
maxSalary Long
jobTitle String
minSalary Long
maxSalary Long
}

@ChangelogDate(20240108000000)
entity JobHistory {
startDate Instant
endDate Instant
language Language
startDate Instant
endDate Instant
language Language
}

enum Language {
FRENCH, ENGLISH, SPANISH
}

relationship ManyToMany {
Job{task(title)} to Task{job(jobTitle)}
Job{task(title)} to Task{job(jobTitle)}
}

relationship OneToMany {
Employee{job(jobTitle)} to Job{employee(email)}
Department{employee(email)} to
Employee{department(departmentName)}
Employee{job(jobTitle)} to Job{employee(email)}
Department{employee(email)} to
Employee{department(departmentName)}
}

relationship ManyToOne {
Expand All @@ -78,9 +88,9 @@ relationship ManyToOne {
}

relationship OneToOne {
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
}

paginate JobHistory, Employee with infinite-scroll
Expand Down
Loading

0 comments on commit 989d2db

Please sign in to comment.