home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / Rental.plist < prev    next >
Encoding:
Text File  |  1996-08-01  |  2.1 KB  |  73 lines

  1. {
  2.     attributes = (
  3.         {
  4.             columnName = CUSTOMER_ID; 
  5.             externalType = NUMBER; 
  6.             name = customerID; 
  7.             precision = 9; 
  8.             valueClassName = NSNumber; 
  9.             valueType = i; 
  10.         }, 
  11.         {
  12.             columnName = DATE_OUT; 
  13.             externalType = DATE; 
  14.             name = dateOut; 
  15.             valueClassName = NSCalendarDate; 
  16.         }, 
  17.         {
  18.             allowsNull = Y; 
  19.             columnName = DATE_RETURNED; 
  20.             externalType = DATE; 
  21.             name = dateReturned; 
  22.             valueClassName = NSCalendarDate; 
  23.         }, 
  24.         {
  25.             columnName = RENTAL_ID; 
  26.             externalType = NUMBER; 
  27.             name = rentalID; 
  28.             precision = 9; 
  29.             valueClassName = NSNumber; 
  30.             valueType = i; 
  31.         }, 
  32.         {
  33.             columnName = UNIT_ID; 
  34.             externalType = NUMBER; 
  35.             name = unitID; 
  36.             precision = 9; 
  37.             valueClassName = NSNumber; 
  38.             valueType = i; 
  39.         }
  40.     ); 
  41.     attributesUsedForLocking = (rentalID, customerID, unitID, dateOut, dateReturned); 
  42.     className = Rental; 
  43.     classProperties = (dateOut, dateReturned, customer, fees, unit); 
  44.     externalName = RENTAL; 
  45.     name = Rental; 
  46.     primaryKeyAttributes = (rentalID); 
  47.     relationships = (
  48.         {
  49.             destination = Customer; 
  50.             isToMany = N; 
  51.             joinSemantic = EOInnerJoin; 
  52.             joins = ({destinationAttribute = customerID; sourceAttribute = customerID; }); 
  53.             name = customer; 
  54.         }, 
  55.         {
  56.             deleteRule = EODeleteRuleCascade; 
  57.             destination = Fee; 
  58.             isToMany = Y; 
  59.             joinSemantic = EOInnerJoin; 
  60.             joins = ({destinationAttribute = rentalID; sourceAttribute = rentalID; }); 
  61.             name = fees; 
  62.             ownsDestination = Y; 
  63.         }, 
  64.         {
  65.             destination = Unit; 
  66.             isToMany = N; 
  67.             joinSemantic = EOInnerJoin; 
  68.             joins = ({destinationAttribute = unitID; sourceAttribute = unitID; }); 
  69.             name = unit; 
  70.         }
  71.     ); 
  72. }
  73.