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/sqlAlchemyTables.vm

    r7974 r7978  
    4141${tab}#column($simpleAttribute) 
    4242#end 
    43 #if($tableModel.hasChildren) 
    44 ${tab}Column('${tableModel.associatedClass.name.toLowerCase()}_type', String(30), nullable=False), 
    45 #end 
     43##if($tableModel.hasChildren) 
     44##${tab}Column('${tableModel.associatedClass.name.toLowerCase()}_type', String(30), nullable=False), 
     45##end 
    4646#inheritanceColumn($tableModel) 
    4747${tab}extend_existing=False,) 
Note: See TracChangeset for help on using the changeset viewer.