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

  1. {
  2.     attributes = (
  3.         {
  4.             allowsNull = Y; 
  5.             columnName = CATEGORY; 
  6.             externalType = VARCHAR2; 
  7.             name = category; 
  8.             valueClassName = NSString; 
  9.             width = 20; 
  10.         }, 
  11.         {
  12.             allowsNull = Y; 
  13.             columnName = DATE_RELEASED; 
  14.             externalType = DATE; 
  15.             name = dateReleased; 
  16.             valueClassName = NSCalendarDate; 
  17.         }, 
  18.         {
  19.             allowsNull = Y; 
  20.             columnName = LANGUAGE; 
  21.             externalType = NUMBER; 
  22.             name = language; 
  23.             precision = 9; 
  24.             valueClassName = NSNumber; 
  25.             valueType = i; 
  26.         }, 
  27.         {
  28.             columnName = MOVIE_ID; 
  29.             externalType = NUMBER; 
  30.             name = movieID; 
  31.             precision = 9; 
  32.             valueClassName = NSNumber; 
  33.             valueType = i; 
  34.         }, 
  35.         {
  36.             allowsNull = Y; 
  37.             columnName = RATING; 
  38.             externalType = VARCHAR2; 
  39.             name = rating; 
  40.             valueClassName = NSString; 
  41.             width = 10; 
  42.         }, 
  43.         {
  44.             allowsNull = Y; 
  45.             columnName = REVENUE; 
  46.             externalType = NUMBER; 
  47.             name = revenue; 
  48.             precision = 15; 
  49.             scale = 2; 
  50.             valueClassName = NSDecimalNumber; 
  51.         }, 
  52.         {
  53.             allowsNull = Y; 
  54.             columnName = STUDIO_ID; 
  55.             externalType = NUMBER; 
  56.             name = studioId; 
  57.             valueClassName = NSNumber; 
  58.             valueType = i; 
  59.         }, 
  60.         {
  61.             columnName = TITLE; 
  62.             externalType = VARCHAR2; 
  63.             name = title; 
  64.             valueClassName = NSString; 
  65.             width = 255; 
  66.         }
  67.     ); 
  68.     attributesUsedForLocking = (title, movieID, rating, dateReleased, category, language, revenue, studioId); 
  69.     className = Movie; 
  70.     classProperties = (
  71.         category, 
  72.         dateReleased, 
  73.         language, 
  74.         rating, 
  75.         title, 
  76.         directors, 
  77.         revenue, 
  78.         roles, 
  79.         plotSummary, 
  80.         studio
  81.     ); 
  82.     externalName = MOVIE; 
  83.     maxNumberOfInstancesToBatchFetch = 10; 
  84.     name = Movie; 
  85.     primaryKeyAttributes = (movieID); 
  86.     relationships = (
  87.         {
  88.             definition = toDirector.toTalent; 
  89.             joinSemantic = EOInnerJoin; 
  90.             name = directors; 
  91.         }, 
  92.         {
  93.             deleteRule = EODeleteRuleCascade; 
  94.             destination = PlotSummary; 
  95.             isToMany = N; 
  96.             joinSemantic = EOInnerJoin; 
  97.             joins = ({destinationAttribute = movieId; sourceAttribute = movieID; }); 
  98.             name = plotSummary; 
  99.             ownsDestination = Y; 
  100.             propagatesPrimaryKey = Y; 
  101.         }, 
  102.         {
  103.             deleteRule = EODeleteRuleCascade; 
  104.             destination = MovieRole; 
  105.             isToMany = Y; 
  106.             joinSemantic = EOInnerJoin; 
  107.             joins = ({destinationAttribute = movieID; sourceAttribute = movieID; }); 
  108.             name = roles; 
  109.             numberOfToManyFaultsToBatchFetch = 20; 
  110.             ownsDestination = Y; 
  111.             propagatesPrimaryKey = Y; 
  112.         }, 
  113.         {
  114.             destination = Studio; 
  115.             isToMany = N; 
  116.             joinSemantic = EOInnerJoin; 
  117.             joins = ({destinationAttribute = studioId; sourceAttribute = studioId; }); 
  118.             name = studio; 
  119.             numberOfToManyFaultsToBatchFetch = 0; 
  120.         }, 
  121.         {
  122.             deleteRule = EODeleteRuleCascade; 
  123.             destination = Director; 
  124.             isToMany = Y; 
  125.             joinSemantic = EOInnerJoin; 
  126.             joins = ({destinationAttribute = movieID; sourceAttribute = movieID; }); 
  127.             name = toDirector; 
  128.             ownsDestination = Y; 
  129.         }
  130.     ); 
  131. }
  132.