From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29f311e5e4153888 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "ramesh" Newsgroups: comp.lang.ada Subject: Re: need help with errors im getting Date: 4 Jul 2005 14:16:13 -0700 Organization: http://groups.google.com Message-ID: <1120511773.743468.134910@g47g2000cwa.googlegroups.com> References: <1119650372.546285.220190@z14g2000cwz.googlegroups.com> <1119724710.107186.139010@g47g2000cwa.googlegroups.com> <6g5sb1ptj1611oq6vbiirutlj9gv5lv39m@4ax.com> <1119773542.691728.137240@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 158.135.0.56 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1120511779 5151 127.0.0.1 (4 Jul 2005 21:16:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 4 Jul 2005 21:16:19 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=158.135.0.56; posting-account=jaODIw0AAAAqz8a5fLvIQzGSVAOK2M7x Xref: g2news1.google.com comp.lang.ada:11859 Date: 2005-07-04T14:16:13-07:00 List-Id: Hi can anybody help me with the linked attributes part, I have to create a link attribute between Department and Faculty which has Faculty's Title and salary. Titles: Chair, Professor, Assistant Professor, Lecturer. A department can have atmost 10 Faculty. A Faculty can work for no more than 2 departments. The Faculty has one more linked attribute of Faculty's Rating. The chair is responsible for the rating. chair(0..1) and Prof(0..9) According to me the relation between Department and Faculty is m:n, and relation between chair and prof is 1:m, i have no idea how to acheive this. i wrote a code right now for 1:1 relation ship specification: type Hire_data_type; type Hire_Data_pointer is access Hire_Data_type; type Hire_data_Type is record JOb_title : JOb_Title_Type := none; Salary : Money := 0.00; Faculty_p : Faculty_ptr; end record; Body: procedure Hire(aDepartment : in out Dept_ptr; aFaculty : in out Faculty_ptr; aHire : in out Hire_Data_pointer; aTitle : in Job_Title_Type;aSalary: Money) is Hire_Data_Pt: Hire_Data_Pointer; begin Hire_Data_Pt := new Hire_Data_Type; aDepartment.Faculty_pt := Hire_Data_pt; Hire_Data_pt.Faculty_p := aFaculty; Hire_Data_pt.Job_Title := aTitle; Hire_Data_pt.salary := aSalary; end Hire; Can anybody help me how to proceed with this. Thanks.