Changeset 1530


Ignore:
Timestamp:
Feb 16, 2011, 5:31:38 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • added belongsTo relation to import mapping domain
Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1528 r1530  
    428428
    429429            // Create new MappingColumn instance
    430             def mc = new MappingColumn (name: flow.importer_header[columnindex.toInteger()].name,
     430            def mc = new MappingColumn (importmapping:im,
     431                                        name: flow.importer_header[columnindex.toInteger()].name,
    431432                                        property:property,
    432433                                        index:columnindex,
  • trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy

    r1529 r1530  
    1313*/
    1414class MappingColumn implements Serializable {
    15 
    1615        String name
    1716        TemplateFieldType templatefieldtype
     
    2322        Boolean dontimport
    2423
     24    static belongsTo = [importmapping:ImportMapping]
     25
    2526    //static transients = [ "templatefieldtype", "entity" ]
    2627
    2728    static constraints = {
    2829            //name(unique: true)
     30        templatefieldtype(nullable:true)
     31        identifier(default:false)
    2932            dontimport(default:false)
    3033        value(nullable:true)
Note: See TracChangeset for help on using the changeset viewer.