Guest User

Untitled

a guest
Jan 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. -- $ make p21read_sdai_TEST_SCHEMA
  2. -- build\TEST_SCHEMA\SdaiTEST_SCHEMA.cc:337:65: error: 'class SdaiPerson_and_organization_address' has no member named 'people_'
  3. -- Errors in input
  4.  
  5. SCHEMA test_schema;
  6.  
  7. TYPE classification_item = SELECT (
  8. person_and_organization_address,
  9. address);
  10. END_TYPE;
  11.  
  12. TYPE label = STRING;
  13. END_TYPE;
  14.  
  15. TYPE identifier = STRING;
  16. END_TYPE;
  17.  
  18. TYPE text = STRING;
  19. END_TYPE;
  20.  
  21. ENTITY person_and_organization_address
  22. SUBTYPE OF (organizational_address, personal_address);
  23. SELF\organizational_address.organizations : SET [1:1] OF organization;
  24. SELF\personal_address.people : SET [1:1] OF person;
  25. END_ENTITY;
  26.  
  27. ENTITY personal_address
  28. SUBTYPE OF (address);
  29. people : SET [1:?] OF person;
  30. description : OPTIONAL text;
  31. END_ENTITY;
  32.  
  33. ENTITY organizational_address
  34. SUBTYPE OF (address);
  35. organizations : SET [1:?] OF organization;
  36. description : OPTIONAL text;
  37. END_ENTITY;
  38.  
  39. ENTITY organization;
  40. id : OPTIONAL identifier;
  41. name : label;
  42. description : OPTIONAL text;
  43. END_ENTITY;
  44.  
  45. ENTITY address;
  46. internal_location : OPTIONAL label;
  47. street_number : OPTIONAL label;
  48. street : OPTIONAL label;
  49. postal_box : OPTIONAL label;
  50. town : OPTIONAL label;
  51. region : OPTIONAL label;
  52. postal_code : OPTIONAL label;
  53. country : OPTIONAL label;
  54. facsimile_number : OPTIONAL label;
  55. telephone_number : OPTIONAL label;
  56. electronic_mail_address : OPTIONAL label;
  57. telex_number : OPTIONAL label;
  58. END_ENTITY;
  59.  
  60. ENTITY person;
  61. id : identifier;
  62. last_name : OPTIONAL label;
  63. first_name : OPTIONAL label;
  64. middle_names : OPTIONAL LIST [1:?] OF label;
  65. prefix_titles : OPTIONAL LIST [1:?] OF label;
  66. suffix_titles : OPTIONAL LIST [1:?] OF label;
  67. WHERE
  68. WR1 : EXISTS(last_name) OR EXISTS(first_name);
  69. END_ENTITY;
  70.  
  71. END_SCHEMA;
Add Comment
Please, Sign In to add comment