home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7319 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.9 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!horga!reswi!reswi!ralf
  2. From: ralf@reswi.en.open.de (Ralf E. Stranzenbach)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: SybaseDemo.dbmodel seems to be defective
  5. Date: 19 Nov 1992 22:56:09 GMT
  6. Organization: News Server fuer en.open.de
  7. Lines: 40
  8. Message-ID: <RALF.92Nov19235609@jodokus.en.open.de>
  9. NNTP-Posting-Host: localhost.en.open.de
  10.  
  11. Hi,
  12.  
  13. i tried to get some things done using NeXT's dbKit adaptor for the
  14. SyBase database server. I spent some time (the whole evening) to get
  15. a very small program working. The things it should do is to show a
  16. list of "Authors" and, in a second browser, a list of their
  17. publications.
  18.  
  19. As a first step i would be pleased to see the cartesian product of
  20. Authors * "their titles".
  21.  
  22. But even this very small example failed. Everytime i tried it to "Run"
  23. from the InterfaceBuilder it crashed.
  24.  
  25. After some time peeking around i noticed, that the model
  26. "SybaseDemo.dbmodel" has some missing relationships:
  27.  
  28.     RelationName         Local Field       matches      External Field
  29.     -----------------    ----------------- ------- -------------------
  30.     Author.Titles      = Author.authorId      >> TitleAuthor[authorId]
  31.     Title.Authors      = Title.titleId        >> TitleAuthor[titleId]
  32.     TitleAuthor.author = TitleAuthor.authorId >  Author[authorId]
  33.     TitleAuthor.title  = TitleAuthor.titleId  >  Title[titleId]
  34.  
  35. After i've entered this relationships by hand, my tinyApp(tm) works...
  36.  
  37.  
  38.     IS THERE ANY REASON WHY THESE RELATIONSHIPS WERE MISSING ?
  39.  
  40. I thought about it, but i do no reason why it should be better not to
  41. enter these valid relationships... Therefore i am currently somehow
  42. confused.
  43.  
  44.     - ralf
  45. --
  46. Ralf E.Stranzenbach  -   (NeXT)-Mail: ralf@reswi.en.open.de
  47.                                 Fido: Ralf_Stranzenbach 2:245/5800.12
  48.                        (Voice)-Phone: +49 2302 / 68403
  49. --
  50. Computer sind die praktische Anwendung der Murphyschen Gesetze.
  51.