Ignore:
Timestamp:
22/12/11 17:33:24 (8 years ago)
Author:
mnagni
Message:

Again uncompleted deployment in DB. Tomorrow have to check better the primaryjoins!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/xmi2sqlalchemy/trunk/src/main/resources/velocity/python/mapping.vm

    r8013 r8040  
    77${tab}if (target.${tm}_id is None): 
    88${tab}${tab}target.${tm}_id = next_id(connection, '${tm}_id_seq') 
    9 #foreach( $parent in $tableModel.inherited) 
    10 #set ($tp = $parent.associatedClass.name.toLowerCase()) 
    11 ${tab}target.${tp}_id = next_id(connection, '${tp}_id_seq') 
    12 ${tab}target.${tm}_${tp}_id = target.${tp}_id 
    13 #end  
     9##foreach( $parent in $tableModel.inherited) 
     10##set ($tp = $parent.associatedClass.name.toLowerCase()) 
     11##${tab}target.${tp}_id = next_id(connection, '${tp}_id_seq') 
     12##${tab}target.${tm}_${tp}_id = target.${tp}_id 
     13##end  
    1414#end 
    1515 
Note: See TracChangeset for help on using the changeset viewer.