home *** CD-ROM | disk | FTP | other *** search
- {
- attributes = (
- {
- columnName = DATE_ACQUIRED;
- externalType = DATE;
- name = dateAcquired;
- valueClassName = NSCalendarDate;
- },
- {
- allowsNull = Y;
- columnName = NOTES;
- externalType = VARCHAR2;
- name = notes;
- valueClassName = NSString;
- width = 255;
- },
- {
- columnName = PRODUCT_ID;
- externalType = NUMBER;
- name = productID;
- precision = 9;
- valueClassName = NSNumber;
- valueType = i;
- },
- {
- allowsNull = Y;
- columnName = UNIT_ID;
- externalType = NUMBER;
- name = unitID;
- precision = 9;
- valueClassName = NSNumber;
- valueType = i;
- }
- );
- attributesUsedForLocking = (unitID, productID, notes, dateAcquired);
- className = Unit;
- classProperties = (notes, dateAcquired, product, rentals, unitID);
- externalName = UNIT;
- maxNumberOfInstancesToBatchFetch = 5;
- name = Unit;
- primaryKeyAttributes = (unitID);
- relationships = (
- {
- destination = Product;
- isToMany = N;
- joinSemantic = EOInnerJoin;
- joins = ({destinationAttribute = productID; sourceAttribute = productID; });
- name = product;
- },
- {
- deleteRule = EODeleteRuleDeny;
- destination = Rental;
- isToMany = Y;
- joinSemantic = EOInnerJoin;
- joins = ({destinationAttribute = unitID; sourceAttribute = unitID; });
- name = rentals;
- numberOfToManyFaultsToBatchFetch = 20;
- }
- );
- }
-