Changes between Version 20 and Version 21 of MolgenisAddressBookExample


Ignore:
Timestamp:
2009-08-23T18:58:53+02:00 (15 years ago)
Author:
Morris Swertz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MolgenisAddressBookExample

    v20 v21  
    11[[TOC]]
    22
    3 = Generating MOLGENIS from scratch =
    4 We will generate a new MOLGENIS by the example of a simple Address Book application:
    5 
    6 a simple database having “Contacts” entities that each can have zero or more “Addresses”:
    7 
    8 [[Image(address-book-screenshot.JPG)]]
     3= Generating MOLGENIS from scratch, step-by-step =
    94
    105== 1. Create the data model XML[[BR]] ==
     
    2015}}}
    2116
    22 == 2. Add a “Contact” data type. ==
     17== Create a “Contact” data type ==
    2318{{{
    2419#!xml
     
    3025}}}
    3126
    32 == 3. Add properties to the “Contact” data type. ==
     27== Add properties to “Contact” ==
    3328 * A unique, automatic numeric identifier field that MOLGENIS will use to refer contacts.
    3429{{{
     
    5449}}}
    5550
    56 == 4. Similarly create a “Address” data type (to keep it simple we only do phone numbers): ==
    57  * Entity address
     51== Create a “Address” data type ==
     52 * Create the entity again
    5853{{{
    5954!xml
     
    7671}}}
    7772
    78 == 5.   Finally we need to link the Addresses to each Contact. ==
     73== Link Addresses to Contact. ==
    7974 * In the Address entity create a [http://en.wikipedia.org/wiki/Foreign_key ForeignKey] reference to Contact
    8075{{{
     
    8883
    8984Use of a meaningless numeric ‘id’ next to a meaningful ‘label’ enables us to change the ‘displayname’ name on Contact without the problem of also having to change this on each Address that refers to this contact.
     85
     86== Result ==
     87[[Image(address-book-screenshot.JPG)]]