Changeset 177 for trunk/grails-app/domain
- Timestamp:
- Feb 8, 2010, 12:46:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r176 r177 46 46 } 47 47 48 Map giveAllFields() { 49 def result = [:] 50 51 // Using reflection here gives way too many properties, like searchable, hasMany, 52 // and it will probably extend when we use new plugins 53 // It is probably best 54 // - to either hardcode the above given properties 55 // - or to move all fields to the template 56 57 this.properties.each{ //public fields only 58 println it.name 59 result[it.name] = it.type.name //name of field and name of type 60 } 61 62 return result; 48 def giveAllFields() { 49 return template.studyFields; 63 50 } 64 51 }
Note: See TracChangeset
for help on using the changeset viewer.