Add Grails sample app

Closes gh-250
This commit is contained in:
Jennifer Strater
2016-05-30 12:22:35 -05:00
committed by Andy Wilkinson
parent c1d245f7d4
commit 64803b5fae
21 changed files with 922 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package com.example
import grails.rest.Resource
@Resource(uri='/notes', formats = ['json', 'xml'])
class Note {
Long id
String title
String body
static hasMany = [tags: Tag]
static mapping = {
tags joinTable: [name: "mm_notes_tags", key: 'mm_note_id' ]
}
}