Ignore:
Timestamp:
Jan 26, 2010, 4:46:01 PM (13 years ago)
Author:
duh
Message:
  • added development version of wizard subjects page and logic
  • modified some domain classes (again, who reverted them?) to implement Serializable
Location:
trunk/grails-app/domain/dbnp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Term.groovy

    r106 r138  
    77 * The Term object should point to an existing term in an online ontology, therefore instances of this class can also
    88 * be seen as a cache of elements of the external ontology.
     9 *
     10 * Revision information:
     11 * $Rev$
     12 * $Author$
     13 * $Date$
    914 */
    10 class Term {
     15class Term implements Serializable {
     16        String name
     17        Ontology ontology
     18        String accession
    1119
    12     String name
    13     Ontology ontology
    14     String accession
     20        static constraints = {
     21        }
    1522
    16     static constraints = {
    17     }
    18 
    19   def String toString() {
    20     return name
    21   }
    22 
    23 
     23        def String toString() {
     24                return name
     25        }
    2426}
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r136 r138  
    99 * $Date$
    1010 */
    11 class Study {
     11class Study implements Serializable {
    1212        nimble.User owner
    1313        String title
     
    2121        Template template
    2222
    23         static hasMany = [      editors:                nimble.User,
    24                                 readers:                nimble.User,
    25                                 subjects:               Subject,
    26                                 groups:                 SubjectGroup,
    27                                 events:                 Event,
    28                                 samplingEvents: SamplingEvent
     23        static hasMany = [      editors: nimble.User,
     24                                                readers: nimble.User,
     25                                                subjects: Subject,
     26                                                groups: SubjectGroup,
     27                                                events: Event,
     28                                                samplingEvents: SamplingEvent
    2929        ]
    3030
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r136 r138  
    11package dbnp.studycapturing
    2 
    32import dbnp.data.Term
    43
    54/**
    65 * This domain class describes the subjects in a study.
     6 *
     7 * Revision information:
     8 * $Rev$
     9 * $Author$
     10 * $Date$
    711 */
    8 class Subject {
    9 
     12class Subject implements Serializable {
    1013        String name
    1114        Term species
     
    1619
    1720        static hasMany = [
    18                 templateStringFields : String,
    19                 templateNumberFields : float,
    20                 templateStringListFields : String,
    21                 templateTermFields : Term
     21                templateStringFields: String,
     22                templateNumberFields: float,
     23                templateStringListFields: String,
     24                templateTermFields: Term
    2225        ]
    23        
     26
    2427        static constraints = {
    2528        }
Note: See TracChangeset for help on using the changeset viewer.