Changeset 1111 for trunk/grails-app/domain
- Timestamp:
- Nov 9, 2010, 7:01:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r1036 r1111 653 653 // got a value? 654 654 if (value) { 655 println".setting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") domain field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])"655 //log.debug ".setting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") domain field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])" 656 656 this[field.name] = value 657 657 } else { 658 println".unsetting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") domain field: [" + fieldName + "]"658 //log.debug ".unsetting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") domain field: [" + fieldName + "]" 659 659 660 660 // remove value. For numbers, this is done by setting … … 680 680 // it is unset if it is. 681 681 if (value || value == 0 || ( field.type == TemplateFieldType.BOOLEAN && value == false)) { 682 println".setting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") template field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])"682 //log.debug ".setting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") template field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])" 683 683 684 684 // set value 685 685 store[fieldName] = value 686 686 } else if (store[fieldName]) { 687 println".unsetting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") template field: [" + fieldName + "]"687 //log.debug ".unsetting [" + ((super) ? super.class : '??') + "] ("+getIdentifier()+") template field: [" + fieldName + "]" 688 688 689 689 // remove the item from the Map (if present)
Note: See TracChangeset
for help on using the changeset viewer.