Ignore:
Timestamp:
14/11/11 11:40:08 (8 years ago)
Author:
mnagni
Message:

Now include a custom defined list of UMLClass to be included in the tables generation.
Removed the class_type as table column because the class inheritance can work even without it

File:
1 edited

Legend:

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

    r7974 r7978  
    66${tab}if (target.${tm}_id is None): 
    77${tab}${tab}target.${tm}_id = next_id(connection, '${tm}_id_seq') 
    8 #if($tableModel.hasChildren) 
    9 ${tab}target.${tm}_type = '${tm}' 
    10 #end 
     8##if($tableModel.hasChildren) 
     9##${tab}target.${tm}_type = '${tm}' 
     10##end 
    1111#foreach( $parent in $tableModel.inherited) 
    1212#set ($tp = $parent.associatedClass.name.toLowerCase()) 
    13 ${tab}target.${tp}_type = '${tp}' 
     13##${tab}target.${tp}_type = '${tp}' 
    1414${tab}target.${tp}_id = next_id(connection, '${tp}_id_seq') 
    1515${tab}target.${tm}_${tp}_id = target.${tp}_id 
Note: See TracChangeset for help on using the changeset viewer.