Changeset 786

Show
Ignore:
Timestamp:
06-08-10 12:33:12 (4 years ago)
Author:
duh
Message:

- added some more documentation

Files:
1 modified

Legend:

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

    r784 r786  
    11package dbnp.studycapturing 
    2  
    3 import org.apache.log4j.Logger 
    4  
    52 
    63/** 
     
    2017 * So you can easily handle the post data in the controller 
    2118 * without relying on an iterator of your own as this proves 
    22  * to be very unreliable: 
     19 * to be very unreliable and quite some extra code and effort 
     20 * in both controller and views: 
    2321 * 
    2422 * Subject.findAll().each() { subject-> 
     
    6563                        // has the iterator become too large? 
    6664                        if (iterator >= maximumIdentity) { 
    67                                 // yes, reset it back to 0 
     65                                // yes, reset it back to 0 as this iterator 
     66                                // works for the complete application, not 
     67                                // only the user session. We don't want it 
     68                                // to go too high :) 
    6869                                iterator = 0 
    6970                        }