Skip to content

Instantly share code, notes, and snippets.

@FanchGadjo
Created March 11, 2020 22:32
Show Gist options
  • Save FanchGadjo/275255cf454869273bf991ac54192150 to your computer and use it in GitHub Desktop.
Save FanchGadjo/275255cf454869273bf991ac54192150 to your computer and use it in GitHub Desktop.
/**
* The application configuration.
* @author A true hipster : Matt Raible
* https://twitter.com/mraible/status/1234875938854207488
*/
application {
config {
baseName notes
authenticationType oauth2
buildTool gradle
searchEngine elasticsearch
testFrameworks [protractor]
}
entities *
}
/**
* The Note entity.
* @author A true hipster
*/
entity Note {
/** fieldName */
title String required
text TextBlob
}
/**
* Many to one relationship.
*/
relationship ManyToOne {
Note{user(login)} to User
}
paginate Note with pagination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment