Skip to content

Commit

Permalink
Added config field for future extensions (via plugins)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewarim committed May 7, 2012
1 parent 4d1dcf0 commit 406308e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grails-app/domain/cinnamon/FolderType.groovy
Expand Up @@ -10,6 +10,7 @@ class FolderType {
static constraints = {
description( size: 0..Constants.DESCRIPTION_SIZE, blank: true)
name(size: 1..Constants.NAME_LENGTH, blank: false, unique: true)
config size: 1..Constants.METADATA_SIZE, blank: false
}

static mapping = {
Expand All @@ -20,6 +21,7 @@ class FolderType {

String name
String description
String config = '<meta />'


/**
Expand Down
2 changes: 2 additions & 0 deletions grails-app/domain/cinnamon/ObjectType.groovy
Expand Up @@ -11,6 +11,7 @@ class ObjectType implements Serializable {
static constraints = {
description( size: 0..Constants.DESCRIPTION_SIZE, blank: true)
name(size: 1..Constants.NAME_LENGTH, blank: false, unique: true)
config size: 1..Constants.METADATA_SIZE, blank: false
}

static mapping = {
Expand All @@ -21,6 +22,7 @@ class ObjectType implements Serializable {

String name
String description
String config = '<meta />'

/**
* Add the ObjectType's fields as child-elements to a new element with the given name.
Expand Down

0 comments on commit 406308e

Please sign in to comment.