Skip to content

Instantly share code, notes, and snippets.

@mraible
Created June 12, 2016 11:28
Show Gist options
  • Save mraible/8640fa406f32cb0f18e1aa7d73ab8022 to your computer and use it in GitHub Desktop.
Save mraible/8640fa406f32cb0f18e1aa7d73ab8022 to your computer and use it in GitHub Desktop.
JDL for JHipster Blog Demo
entity Blog {
name String required minlength(3),
handle String required minlength(2)
}
entity Entry {
title String required,
content String required,
date ZonedDateTime required
}
entity Tag {
name String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User
}
relationship ManyToOne {
Entry{blog(name)} to Blog
}
relationship ManyToMany {
Entry{tag(name)} to Tag{entry}
}
paginate Entry, Tag with infinite-scroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment