| | This file copyright (c) 2004 SO.MUS.AR. s.a.s. | Subject to the license published at | http://www.somusar.com/contact/poc_request | transportation "Transportation" | | This multi-tier entity features a database table and a logic-tier class. | string transportation_id[20] "Transportation id." locale locale "Locale" string origin[30] "Origin" string destination[30] "Destination" string carrier[80] "Carrier" string name[80] "Name" string departure_time[80] "Departure time" string arrival_time[80] "Arrival time" string description[255] "Description" string travel_class[20] "Class" float price "Price" string image_uri[80] "Image URI" --- DEFS ------------------------------------------------------------------ | No particular definitions required for this entity --- DB -------------------------------------------------------------------- | | Define the field set for the database table | of this entity, and define its primary multi-field key. | table: transportation_id, locale, origin, destination, carrier, name, departure_time, arrival_time, description, travel_class, price, image_uri pkey: transportation_id, locale | Define list of fields that may be null null: price | | Define the list of fields to be returned by a select query | query: transportation_id, name, description, image_uri, price, origin, destination, carrier, departure_time, arrival_time, travel_class --- LOGIC ----------------------------------------------------------------- | | Define the list of properties for the logic tier class | properties: transportation_id, name, description, image_uri, price, origin, destination, carrier, departure_time, arrival_time, travel_class --- UI -------------------------------------------------------------------- | No usage interface for this entity, yet --- ADJUST ---------------------------------------------------------------- | For some reason, "travel_class" is renamed "class" in the database table DB.column_map = "class=travel_class" | Override default DB type mapping for transportation_id DB.table.transportation_id.db_type = "char" | Field image_uri is referred to as imageURI/ImageURI in the logic tier LOGIC.properties.image_uri.prop_id_style = "abcDEF;AbcDEF"