Changes between Version 16 and Version 17 of MolgenisAddressBookExample


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

--

Legend:

Unmodified
Added
Removed
Modified
  • MolgenisAddressBookExample

    v16 v17  
    2121
    2222== 2. Add a “Contact” data type. ==
    23 Data types are called ‘entity’ in MOLGENIS:
    2423{{{
    2524#!xml
     
    3231
    3332== 3. Add properties to the “Contact” data type. ==
    34 Properties are called ‘field’ in MOLGENIS.
    3533 * A unique, automatic numeric identifier field that MOLGENIS will use to refer contacts.
    3634{{{
     
    3836<field name="contact_id" type="autoid"/>
    3937}}}
     38 * A required and unique string field ‘displayname’ to have a unique label to find Contacts by. Note that if you provide no ‘type’ then type=”string” is implied.
     39{{{
     40#!xml
     41<field name="displayname" unique="true"/>
     42}}}
     43 * Optional (‘nillable’) string fields for firstname, lastname and midinitials:
     44{{{
     45#!xml
     46<field name="firstname" nillable="true"/>
     47<field name="midinitials" nillable="true"/>
     48<field name="lastname" nillable="true"/>
     49}}}
     50 * An optional field of type date for birthday:
     51{{{
     52#!xml
     53<field name="birthday" type="date" nillable="true"/>
     54}}}
     55