Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume II

"somusar/SoProTech: A Sample Project"

Printer friendly


Contents
1. Introduction
2. Sample Project Entities
3. Sample Project Mold Kit
4. Project Conventions
5. Exercise 1: Adding Field currency to Entity country
6. Exercise 2: Adding Entity "company.ef"
7. Exercise 3: Changing all SQL Scripts and all HTML Forms
8. Further Reading
Appendix A - Project Entity Files
Appendix B - Library Entities
B.1 Library Entity image
B.2 Library Entity strings

Appendix B - Library Entities

This appendix contains the final version of all library entities from the sample project.

B.1 - Library Entity image        top

Entity image - File "sample_project/library/image.ef"
    1      image "Project-wide image definition"
    2      | A photo, an illustration, or a picture
    3      
    4      strings.pathname        img_file        "Image file"
    5      
    6      ----------------------- DEFS
    7      ----------------------- DB
    8      table:
    9         img_file
   10      ----------------------- LOGIC
   11      class:
   12         img_file
   13      ----------------------- UI
   14      | UI representation of the image is handled directly 
   15      | in the UI molds
   16      ----------------------- ADJUST
   17      DB.table.create = "false"
	       

B.2 - Library Entity strings        top

Entity strings - File "sample_project/library/strings.ef"
    1      strings "Project-wide strings definitions"
    2      | Various types of strings, standardized across the project
    3      
    4      string  long_string[80]         "Long string"
    5      string  mid_string[40]          "Mid string"
    6      string  short_string[20]        "Short string"
    7      string  very_long_string[255]   "Very long string"
    8      string  password[40]            "Password"
    9      string  status[2]               "Status"
   10      string  id[10]                  "Identifier"
   11      string  user_id[80]             "User id."
   12      string  name[40]                "Name"
   13      string  telephone[40]           "Tel. number"
   14      string  email[60]               "Email address"
   15      string  description[200]        "Short description"
   16      string  ssn[40]                 "Social security number"
   17      string  pathname[1024]          "Pathname"
   18      
   19      DEFS
   20      DB
   21      LOGIC
   22      UI
   23      ADJUST
	       

[Previous chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / sample_proj  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster