Changeset 422 for trunk/grails-app/domain/dbnp
- Timestamp:
- May 17, 2010, 4:00:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r421 r422 368 368 // got a value? 369 369 if (value) { 370 println " setting [" + ((super) ? super.class : '??') + "] domain field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])"370 println ".setting [" + ((super) ? super.class : '??') + "] domain field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])" 371 371 372 372 // set value 373 373 this[field.name] = value 374 374 } else { 375 println " removing [" + ((super) ? super.class : '??') + "] domain field: [" + fieldName + "]"375 println ".unsetting [" + ((super) ? super.class : '??') + "] domain field: [" + fieldName + "]" 376 376 377 377 // remove value … … 383 383 def store = getStore(field.type) 384 384 if (!value && store[fieldName]) { 385 println " removing [" + ((super) ? super.class : '??') + "] template field: [" + fieldName + "]"385 println ".unsetting [" + ((super) ? super.class : '??') + "] template field: [" + fieldName + "]" 386 386 387 387 // remove the item from the Map (if present) 388 388 store.remove(fieldName) 389 389 } else if (value) { 390 println " setting [" + ((super) ? super.class : '??') + "] template field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])"390 println ".setting [" + ((super) ? super.class : '??') + "] template field: [" + fieldName + "] ([" + value.toString() + "] of type [" + value.class + "])" 391 391 392 392 // set value
Note: See TracChangeset
for help on using the changeset viewer.