blob: a32d05a0ae14423bdd7480daf7eacb18f637271a [file] [log] [blame]
class Entry {
@Property Long id;
@Property Long version;
@Property relationships = [ "comments" : Comment.class ]
@Property String title
@Property Date date
@Property String body
@Property Set comments = new HashSet()
@Property constraints = {
title(blank:false,length:1..50)
date(nullable:false)
body(blank:false)
}
}