Ignore:
Timestamp:
18/01/12 11:46:07 (8 years ago)
Author:
mnagni
Message:

Now generate the inner class attributes and table relations which manage the attribute subtyping (at least for no more than the same subtyping attribute for each class)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/xmi2sqlalchemy/trunk/src/main/resources/global_library.vm

    r8041 r8064  
    2626#foreach( $relation in $tableModel.relationship) 
    2727        #relationColumn($tableModel, $relation)#if($foreach.hasNext),#end 
     28#end 
     29#foreach( $attribute in $tableModel.associatedClassModel.attributeModel) 
     30#if($attribute.subTypes) 
     31#foreach($sType in $attribute.subTypes) 
     32'_${sType.associatedClass.name.toLowerCase()}': relationship(${sType.associatedClass.name}, uselist=False, backref='${tableModel.associatedClassModel.associatedClass.name.toLowerCase()}_${attribute.name}')#if($foreach.hasNext),#end 
     33#end 
     34#end     
    2835#end 
    2936#end 
Note: See TracChangeset for help on using the changeset viewer.