source: trunk/grails-app/domain/AppConfig.groovy @ 326

Last change on this file since 326 was 265, checked in by gav, 15 years ago

Start of asset tree refactor.
Tweak AppConfig.groovy maxSize values and regenerate views.
Add page_copy.png

File size: 461 bytes
Line 
1/**
2 * Domain class that stores various application configuration (settings) in the database.
3 * Use AppConfigService to interact with the instances.
4 */
5class AppConfig {
6    String name
7    String value
8    String description = ''
9
10    static constraints = {
11        name(maxSize:100,unique:true,blank:false)
12        value(maxSize:500,blank:false)
13        description(maxSize:500)
14    }
15
16    String toString() {
17        "${this.name} = ${this.value}"
18    }
19}
Note: See TracBrowser for help on using the repository browser.