home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / FlatFileDataSource / example.eomodel < prev    next >
Encoding:
Text File  |  1994-12-31  |  1.7 KB  |  52 lines

  1. {
  2.     EOModelVersion = 1; 
  3.     adaptorName = Oracle7; 
  4.     connectionDictionary = {hostMachine = waddel; password = sqa; serverId = test; userName = sqa; }; 
  5.     entities = (
  6.     {
  7.         attributes = (
  8.         {calendarFormat = Text; name = company; valueClassName = NSString; }, 
  9.         {calendarFormat = Text; name = id; valueClassName = NSString; }, 
  10.         {calendarFormat = Text; name = name; valueClassName = NSString; }, 
  11.         {calendarFormat = Text; name = type; valueClassName = NSString; }
  12.         ); 
  13.         attributesUsedForLocking = (id, name, company, type); 
  14.         className = EOGenericRecord; 
  15.         classProperties = (id, name, company, type, toItem); 
  16.         externalName = Product.table; 
  17.         name = Product; 
  18.         primaryKeyAttributes = (id); 
  19.         relationships = (
  20.         {
  21.             destination = Item; 
  22.             isToMany = Y; 
  23.             joins = (
  24.             {
  25.                 destinationAttribute = ProductId; 
  26.                 joinOperator = EOJoinEqualTo; 
  27.                 joinSemantic = EOInnerJoin; 
  28.                 sourceAttribute = id; 
  29.             }
  30.             ); 
  31.             name = toItem; 
  32.         }
  33.         ); 
  34.     }, 
  35.     {
  36.         attributes = (
  37.         {calendarFormat = Text; name = ProductId; valueClassName = NSString; }, 
  38.         {calendarFormat = Text; name = id; valueClassName = NSString; }, 
  39.         {calendarFormat = Text; name = name; valueClassName = NSString; }, 
  40.         {calendarFormat = Text; name = price; valueClassName = NSString; }, 
  41.         {calendarFormat = Text; name = qty; valueClassName = NSString; }, 
  42.         {calendarFormat = Text; name = serialNumber; valueClassName = NSString; }
  43.         ); 
  44.         attributesUsedForLocking = (serialNumber, name, price, ProductId, id, qty); 
  45.         className = EOGenericRecord; 
  46.         classProperties = (serialNumber, name, price, ProductId, id, qty); 
  47.         externalName = Item.table; 
  48.         name = Item; 
  49.         primaryKeyAttributes = (id); 
  50.     }
  51.     ); 
  52. }