wiki:MolgenisAddressBookExample

Version 15 (modified by Morris Swertz, 15 years ago) (diff)

--

Table of Contents

    Generating MOLGENIS from scratch

    We will generate a new MOLGENIS by the example of a simple Address Book application:

    a simple database having “Contacts” entities that each can have zero or more “Addresses”:

    1. Create the data model XML

    Create a new xml file ‘addressbook_db.xml’ in the root of you application. This file will contain the MOLGENIS model. Use the following template:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE molgenis PUBLIC "MOLGENIS 1.0" "http://molgenis.sourceforge.net/dtd/molgenis_v_1_0.dtd">
    <molgenis name="addressbook">
    
    </molgenis>
    
    1. Add a “Contact” data type. Data types are called ‘entity’ in MOLGENIS:
      <molgenis name="addressbook">
        <entity name="Contact">
                      
        </entity>
      </molgenis>
      

    Attachments (1)

    Download all attachments as: .zip