Changeset 936 for trunk/grails-app/domain
- Timestamp:
- Oct 11, 2010, 10:23:13 PM (10 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy
r784 r936 27 27 } 28 28 29 static mapping = { 30 tablePerHierarchy false 31 } 32 29 33 String toString() { 30 34 return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier -
trunk/grails-app/domain/dbnp/studycapturing/Identity.groovy
r798 r936 1 1 package dbnp.studycapturing 2 3 import org.nmcdsp.plugins.aaaa.Entity 2 4 3 5 /** … … 41 43 * $Date$ 42 44 */ 43 abstract class Identity implements Serializable {45 abstract class Identity extends Entity implements Serializable { 44 46 // keep an internal identifier for use in dynamic forms 45 47 private int identifier = 0 -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r934 r936 1 1 package dbnp.studycapturing 2 2 3 import dbnp.user.User3 import org.nmcdsp.plugins.aaaa.SecUser 4 4 5 5 /** … … 16 16 } 17 17 18 User owner // The owner of the study. A new study is automatically owned by its creator.18 SecUser owner // The owner of the study. A new study is automatically owned by its creator. 19 19 String title // The title of the study 20 20 String code // currently used as the external study ID, e.g. to reference a study in a SAM module … … 22 22 Date lastUpdated 23 23 Date startDate 24 List subjects24 List subjects 25 25 List events 26 26 List samplingEvents … … 29 29 List assays 30 30 31 static hasMany = [ 32 editors: User, // Users with read/write access to the study 33 readers: User, // Users with only read access to the study 31 static hasMany = [ 34 32 subjects: Subject, 35 33 samplingEvents: SamplingEvent, … … 52 50 // Workaround for bug http://jira.codehaus.org/browse/GRAILS-6754 53 51 templateTextFields type: 'text' 52 owner column:"studyowner" 53 title column:"studytitle" 54 code column:"studycode" 55 subjects column:"studysubjects" 56 events column:"studyevents" 57 samplingEvents column:"studysamplingevents" 58 eventGroups column:"studyeventgroups" 59 samples column:"studysamples" 60 assays column:"studyassays" 54 61 55 62 } -
trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy
r874 r936 31 31 } 32 32 33 static mapping = { 34 name column:"subjectname" 35 } 36 33 37 34 38 /** -
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r896 r936 1 1 package dbnp.studycapturing 2 2 3 import dbnp.user.User 3 import org.nmcdsp.plugins.aaaa.SecUser 4 import org.nmcdsp.plugins.aaaa.Entity 4 5 5 6 /** … … 31 32 32 33 /** The owner of the template. If the owner is not defined, it is a shared/public template */ 33 User owner34 SecUser owner 34 35 35 36 /** The template fields which are the members of this template. This is a List to preserve the field order */ … … 37 38 38 39 static hasMany = [fields: TemplateField] 40 41 static mapping = { 42 name column:"templatename" 43 description column:"templatedescription" 44 entity column:"templateentity" 45 owner column:"templateowner" 46 fields column:"templatefields" 47 } 39 48 40 49 // constraints -
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r902 r936 3 3 import dbnp.data.Term 4 4 import org.springframework.validation.FieldError 5 import org.nmcdsp.plugins.aaaa.Entity 5 6 6 7 /** … … 43 44 static hasMany = [ 44 45 templateStringFields : String, 45 templateTextFields 46 templateTextFields : String, 46 47 templateStringListFields: TemplateFieldListItem, 47 48 templateIntegerFields : int, 48 templateFloatFields 49 templateFloatFields : float, 49 50 templateDoubleFields : double, 50 templateDateFields 51 templateTermFields 51 templateDateFields : Date, 52 templateTermFields : Term, 52 53 templateRelTimeFields : long, 53 templateFileFields 54 templateFileFields : String, 54 55 templateBooleanFields : boolean, 55 56 templateTemplateFields : Template, 56 57 templateModuleFields : AssayModule, 57 templateLongFields 58 systemFields 58 templateLongFields : long, 59 systemFields : TemplateField 59 60 ] 60 61 … … 70 71 // Make sure that the text fields are really stored as TEXT, so that those Strings can have an arbitrary length. 71 72 templateTextFields type: 'text' 73 74 template column:"templateentitytemplate" 72 75 } 73 76 -
trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy
r803 r936 72 72 // Make sure the comments can be Strings of arbitrary length 73 73 comment type: 'text' 74 name column:"templatefieldname" 75 type column:"templatefieldtype" 76 entity column:"templatefieldentity" 77 unit column:"templatefieldunit" 78 comment column:"templatefieldcomment" 74 79 } 75 80 -
trunk/grails-app/domain/dbnp/studycapturing/TemplateFieldListItem.groovy
r784 r936 20 20 } 21 21 22 static mapping = { 23 name column:"templatefieldlistitemname" 24 } 25 22 26 String toString() { 23 27 return name;
Note: See TracChangeset
for help on using the changeset viewer.