source: mauRepo/xmi2sqlalchemy/trunk/src/main/resources/velocity/python/association.vm @ 8040

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/xmi2sqlalchemy/trunk/src/main/resources/velocity/python/association.vm@8040
Revision 8040, 402 bytes checked in by mnagni, 8 years ago (diff)

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

  • Property svn:executable set to *
Line 
1## association.vm
2#set ($rn = ${associationTable.rightTable.associatedClass.name.toLowerCase()})
3#set ($ln = ${associationTable.leftTable.associatedClass.name.toLowerCase()})
4#set ($totalName = "${rn}_${ln}")
5${totalName}_table = Table('${totalName}', metadata,
6${tab}Column('left_node_id', Integer, ForeignKey(${rn}_table.c.id)),
7${tab}Column('right_node_id', Integer, ForeignKey(${ln}_table.c.id))
8)
Note: See TracBrowser for help on using the repository browser.