Changeset 785 for trunk/grails-app/domain
- Timestamp:
- Aug 6, 2010, 12:22:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r784 r785 37 37 Map templateTermFields = [:] 38 38 39 // keep an internal identifier for use in dynamic forms40 private int identifier = 041 static int iterator = 042 43 // set transients44 static transients = [ "identifier", "iterator" ]45 46 39 // define relationships 47 40 static hasMany = [ … … 330 323 return (!error) 331 324 }) 332 }333 334 /**335 * Class constructor increments that static iterator336 * and sets the object's identifier (used in dynamic webforms)337 * @void338 */339 public TemplateEntity() {340 if (!identifier) identifier = iterator++341 }342 343 /**344 * Return the identifier345 * @return int346 */347 final public int getIdentifier() {348 return identifier349 325 } 350 326
Note: See TracChangeset
for help on using the changeset viewer.