Changes between Version 16 and Version 17 of MolgenisAddressBookExample
- Timestamp:
- 2009-08-23T18:50:39+02:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MolgenisAddressBookExample
v16 v17 21 21 22 22 == 2. Add a “Contact” data type. == 23 Data types are called ‘entity’ in MOLGENIS:24 23 {{{ 25 24 #!xml … … 32 31 33 32 == 3. Add properties to the “Contact” data type. == 34 Properties are called ‘field’ in MOLGENIS.35 33 * A unique, automatic numeric identifier field that MOLGENIS will use to refer contacts. 36 34 {{{ … … 38 36 <field name="contact_id" type="autoid"/> 39 37 }}} 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