Ignore:
Timestamp:
Jan 28, 2011, 12:00:37 PM (10 years ago)
Author:
robert@…
Message:

Saving new entity tokens needed a flush to work properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy

    r1452 r1454  
    138138                if( !this.sampleUUID ) {
    139139                        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                        }
    141143                }
    142144               
Note: See TracChangeset for help on using the changeset viewer.