Generating ORM code and/or database

Generation of ORM code and database can be done through the command line interface. To do this:

  1. Browse the scripts folder under the VP Suite installation directory.
    The scripts folder inside VP Suite installation directory
    The scripts folder inside VP Suite installation directory
  2. Copy the script file GenerateORM and paste to the bin folder of VP Suite installation directory.
    Copy and paste GenerateORM from scripts folder to bin folder
    Copy and paste GenerateORM from scripts folder to bin folder
  3. Start the command prompt.
  4. Navigate to the bin folder of VP Suite installation directory.
    Navigate to the bin folder of VP Suite in command prompt
    Navigate to the bin folder of VP Suite in command prompt
  5. Execute the script by supplying the required parameters. For example:
    GenerateORM -project C:\Demo\Demo.vpp -out C:\Demo\Output -code -ddl
    Executing GenerateORM
    Executing GenerateORM
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -out Folder for storing the generated files including the source code, required libraries and mapping XML
    C:\Demo\Output
    -code [optional]
    Include to generate code.
    -code
    -ddl [optional] Include to export DDL
    -ddl
    -exportdb [optional] Include to export database -exportdb
    Parameters for GenerateORM
  6. NOTE: If you are unable to get the execute success, try to open the project with VP-UML, run once and save. The problem is likely to occur when some files required (e.g. dialet) are unknown due to never been defined in the project file.
 
3. Exporting and importing XML Table of Contents 5. Generating report through command line
 

Product

Try this feature with

Visual Paradigm for UML

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.