Home » Community » Coffee corner » Automatic generation of SCH-file from UML
Automatic generation of SCH-file from UML [message #22982] |
Fri, 04 September 2009 14:26  |
|
I do not know in what forum section to put this topic.
I made for myself adapting to the program Dia, that it can generate code sch-file on UML diagrams.
Example of the complex structure of the tables, such as here,
you can immediately get ready sch file in the form:
//======================================================================================//
// //
// COMPANY //
// //
//======================================================================================//
TABLE_(COMPANY)
#ifdef MYSQL_DB
TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
INT_ (COM_ID) PRIMARY_KEY AUTO_INCREMENT
INT_ (COM_GROUPID)
STRING_ (COM_NAME,500)
STRING_ (COM_INN,500)
STRING_ (COM_KPP,500)
STRING_ (COM_COMMENT,500)
END_TABLE
//======================================================================================//
// //
// ACCOUNT //
// //
//======================================================================================//
TABLE_(ACCOUNT)
#ifdef MYSQL_DB
TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
INT_ (ACC_ID)
INT_ (ACC_CORRID)
INT_ (ACC_BANKID)
STRING_ (ACC_NAME,500)
STRING_ (ACC_ACCOUNT,100)
STRING_ (ACC_COMMENT,500)
END_TABLE
//======================================================================================//
// //
// BANK //
// //
//======================================================================================//
TABLE_(BANK)
#ifdef MYSQL_DB
TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
INT_ (BNK_ID)
STRING_ (BNK_NAME,500)
STRING_ (BNK_BIK,100)
STRING_ (BNK_CORRACCOUNT,100)
END_TABLE
....
....
The same description of the other files.
....
....
SergeyNikitin<U++>( linux, wine )
{
under( Ubuntu || Debian || Raspbian );
}
[Updated on: Fri, 04 September 2009 14:29] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 17:57:08 CEST 2025
Total time taken to generate the page: 0.00848 seconds
|