Changes between Initial Version and Version 1 of MolgenisGeneratorBasics


Ignore:
Timestamp:
2009-08-24T00:42:49+02:00 (15 years ago)
Author:
Morris Swertz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MolgenisGeneratorBasics

    v1 v1  
     1= MOLGENIS generator basics =
     2In this section you go through the basic procedure of generation, compilation and running of a MOLGENIS application.
     3 1. Run the MOLGENIS generator: right-click on the MolgenisGenerate.java program and choose ‘Run as….run as Java Application:
     4 
     5    [[Image(molgenis-run-generator.gif)]]
     6
     7    The MOLGENIS generator parses the *.xml files to read in the model and subsequently translates the model in many Java, SQL and R files that end up in the folder generated/java and generated/sql. All this will be printed to the console. Scroll through the console to get a feel for what has just happened:
     8
     9    [[Image(molgenis-generator-console.gif)]]
     10 
     11 2. Run the MOLGENIS database updater: right-click the MolgenisUpdateDatabase.java program and choose Run as….Java Application. This will load generated/java/create_tables.sql into mysql database based on the settings in 'molgenis.properties'.
     12
     13    [[Image(molgenis-updatedatabase-con.gif)]]
     14 
     15 3. Compile the generated application: right-click on the molgenis3_x_distro project and choose [refresh]. This will force Eclipse to discover and compile the code you just generated.
     16
     17 4. Run the application: right-click on the molgenis3_x_distro project and choose [Run as…] -> [Run on server].
     18Notice: on the first run this will in a dialog asking you to define a new server. Choose Tomcat of your version and choose [next] to point it to the right directory.
     19
     20    [[Image(molgenis-run-on-server.gif)]]
     21 
     22 5. Finally browse the generated result and test the result by adding data:
     23
     24    [[Image(molgenis-first-result.gif)]]