Changeset 1454 for trunk/grails-app/domain
- Timestamp:
- Jan 28, 2011, 12:00:37 PM (10 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy
r1452 r1454 80 80 if( !this.assayUUID ) { 81 81 this.assayUUID = UUID.randomUUID().toString(); 82 this.save(); 82 if( !this.save(flush:true) ) { 83 log.error "Couldn't save assay UUID: " + this.getErrors(); 84 } 83 85 } 84 86 -
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r1452 r1454 138 138 if( !this.sampleUUID ) { 139 139 this.sampleUUID = UUID.randomUUID().toString(); 140 this.save(); 140 if( !this.save(flush:true) ) { 141 log.error "Couldn't save sample UUID: " + this.getErrors(); 142 } 141 143 } 142 144 -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r1452 r1454 517 517 if( !this.studyUUID ) { 518 518 this.studyUUID = UUID.randomUUID().toString(); 519 this.save(); 519 if( !this.save(flush:true) ) { 520 log.error "Couldn't save study UUID: " + this.getErrors(); 521 } 520 522 } 521 523
Note: See TracChangeset
for help on using the changeset viewer.