home *** CD-ROM | disk | FTP | other *** search
- {
- attributes = (
- {
- columnName = CUSTOMER_ID;
- externalType = NUMBER;
- name = customerID;
- precision = 9;
- valueClassName = NSNumber;
- valueType = i;
- },
- {
- columnName = DATE_OUT;
- externalType = DATE;
- name = dateOut;
- valueClassName = NSCalendarDate;
- },
- {
- allowsNull = Y;
- columnName = DATE_RETURNED;
- externalType = DATE;
- name = dateReturned;
- valueClassName = NSCalendarDate;
- },
- {
- columnName = RENTAL_ID;
- externalType = NUMBER;
- name = rentalID;
- precision = 9;
- valueClassName = NSNumber;
- valueType = i;
- },
- {
- columnName = UNIT_ID;
- externalType = NUMBER;
- name = unitID;
- precision = 9;
- valueClassName = NSNumber;
- valueType = i;
- }
- );
- attributesUsedForLocking = (rentalID, customerID, unitID, dateOut, dateReturned);
- className = Rental;
- classProperties = (dateOut, dateReturned, customer, fees, unit);
- externalName = RENTAL;
- name = Rental;
- primaryKeyAttributes = (rentalID);
- relationships = (
- {
- destination = Customer;
- isToMany = N;
- joinSemantic = EOInnerJoin;
- joins = ({destinationAttribute = customerID; sourceAttribute = customerID; });
- name = customer;
- },
- {
- deleteRule = EODeleteRuleCascade;
- destination = Fee;
- isToMany = Y;
- joinSemantic = EOInnerJoin;
- joins = ({destinationAttribute = rentalID; sourceAttribute = rentalID; });
- name = fees;
- ownsDestination = Y;
- },
- {
- destination = Unit;
- isToMany = N;
- joinSemantic = EOInnerJoin;
- joins = ({destinationAttribute = unitID; sourceAttribute = unitID; });
- name = unit;
- }
- );
- }
-