-
-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy pathblog.jh
More file actions
36 lines (30 loc) · 620 Bytes
/
blog.jh
File metadata and controls
36 lines (30 loc) · 620 Bytes
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
application {
config {
baseName blog
applicationType monolith
packageName com.jhipster.demo.blog
buildTool maven,
testFrameworks [cypress]
}
entities *
}
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
entity Post {
title String required
content TextBlob required
date Instant required
}
entity Tag {
name String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User with builtInEntity
Post{blog(name)} to Blog
}
relationship ManyToMany {
Post{tag(name)} to Tag{entry}
}
paginate Post, Tag with infinite-scroll