Changeset 408 for trunk/grails-app/domain
- Timestamp:
- May 11, 2010, 4:41:05 PM (13 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Event.groovy
r397 r408 14 14 */ 15 15 class Event extends TemplateEntity implements Serializable { 16 //Date startTime17 //Date endTime16 Date startTime 17 Date endTime 18 18 19 19 static constraints = { 20 /*21 20 endTime(validator: {val, obj -> 22 21 if (val && val.before(obj.startTime)) { … … 24 23 } 25 24 }) 26 */27 25 } 28 26 -
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r397 r408 12 12 SamplingEvent parentEvent 13 13 14 //String name // should be unique with respect to the parent study (which can be inferred)15 //Term material // a member that describes the quantity of the sample? --> should be in the templates14 String name // should be unique with respect to the parent study (which can be inferred) 15 Term material // a member that describes the quantity of the sample? --> should be in the templates 16 16 17 17 /** … … 23 23 new TemplateField( 24 24 name: 'name', 25 type: TemplateFieldType.STRING), 25 type: TemplateFieldType.STRING, 26 preferredIdentifier: true), 26 27 new TemplateField( 27 28 name: 'material', -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r397 r408 12 12 static searchable = true 13 13 nimble.User owner 14 String title 14 15 Date dateCreated 15 16 Date lastUpdated 17 Date startDate 16 18 17 19 /** … … 45 47 static constraints = { 46 48 owner(nullable: true, blank: true) 47 template(nullable: false, blank: false)48 49 } 49 50 … … 58 59 */ 59 60 def String toString() { 60 //return title; 61 def title = this.giveDomainFields().find { it.name == 'title' } 62 63 return title.toString() 61 return title; 64 62 } 65 63 -
trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy
r397 r408 14 14 class Subject extends TemplateEntity implements Serializable { 15 15 static searchable = true 16 16 String name 17 Term species 18 17 19 /** 18 20 * return the domain fields for this domain class … … 23 25 new TemplateField( 24 26 name: 'name', 25 type: TemplateFieldType.STRING), 27 type: TemplateFieldType.STRING, 28 preferredIdentifier: true), 26 29 new TemplateField( 27 30 name: 'species', -
trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy
r397 r408 18 18 List listEntries 19 19 boolean required 20 boolean preferredIdentifier 20 21 21 22 static hasMany = [ … … 29 30 comment(nullable:true, blank: true) 30 31 required(default: false) 32 preferredIdentifier(default: false) 31 33 } 32 34
Note: See TracChangeset
for help on using the changeset viewer.