Annotation of Examples/EnterpriseObjects/ManyToMany/Projects_sybase/Projects.eomodel, revision 1.1

1.1     ! root        1: {
        !             2:     EOModelVersion = 1; 
        !             3:     adaptorName = Sybase; 
        !             4:     connectionDictionary = {databaseName = ""; hostName = ""; password = ""; userName = ""; }; 
        !             5:     entities = (
        !             6:        {
        !             7:            attributes = (
        !             8:                {
        !             9:                    columnName = EMP_ID; 
        !            10:                    externalType = int; 
        !            11:                    name = EmpId; 
        !            12:                    valueClassName = NSNumber; 
        !            13:                    valueType = i; 
        !            14:                }, 
        !            15:                {
        !            16:                    columnName = PROJECT_ID; 
        !            17:                    externalType = int; 
        !            18:                    name = ProjectId; 
        !            19:                    valueClassName = NSNumber; 
        !            20:                    valueType = i; 
        !            21:                }
        !            22:            ); 
        !            23:            attributesUsedForLocking = (EmpId, ProjectId); 
        !            24:            classProperties = (EmpId, ProjectId, toProject, toEmployee); 
        !            25:            externalName = EMP_PROJECT; 
        !            26:            name = EmpProject; 
        !            27:            primaryKeyAttributes = (EmpId, ProjectId); 
        !            28:            relationships = (
        !            29:                {
        !            30:                    destination = Employee; 
        !            31:                    isToMany = N; 
        !            32:                    joins = (
        !            33:                        {
        !            34:                            destinationAttribute = EmpId; 
        !            35:                            joinOperator = EOJoinEqualTo; 
        !            36:                            joinSemantic = EOInnerJoin; 
        !            37:                            sourceAttribute = EmpId; 
        !            38:                        }
        !            39:                    ); 
        !            40:                    name = toEmployee; 
        !            41:                }, 
        !            42:                {
        !            43:                    destination = Project; 
        !            44:                    isToMany = N; 
        !            45:                    joins = (
        !            46:                        {
        !            47:                            destinationAttribute = ProjectId; 
        !            48:                            joinOperator = EOJoinEqualTo; 
        !            49:                            joinSemantic = EOInnerJoin; 
        !            50:                            sourceAttribute = ProjectId; 
        !            51:                        }
        !            52:                    ); 
        !            53:                    name = toProject; 
        !            54:                }
        !            55:            ); 
        !            56:        }, 
        !            57:        {
        !            58:            attributes = (
        !            59:                {
        !            60:                    columnName = EMP_ID; 
        !            61:                    externalType = int; 
        !            62:                    name = EmpId; 
        !            63:                    valueClassName = NSNumber; 
        !            64:                    valueType = i; 
        !            65:                }, 
        !            66:                {
        !            67:                    columnName = FIRST_NAME; 
        !            68:                    externalType = varchar; 
        !            69:                    name = FirstName; 
        !            70:                    valueClassName = NSString; 
        !            71:                }, 
        !            72:                {
        !            73:                    columnName = LAST_NAME; 
        !            74:                    externalType = varchar; 
        !            75:                    name = LastName; 
        !            76:                    valueClassName = NSString; 
        !            77:                }, 
        !            78:                {
        !            79:                    definition = "LastName + ', ' + FirstName"; 
        !            80:                    externalType = varchar; 
        !            81:                    isReadOnly = Y; 
        !            82:                    name = Name; 
        !            83:                    valueClassName = NSString; 
        !            84:                }, 
        !            85:                {
        !            86:                    columnName = PHONE; 
        !            87:                    externalType = char; 
        !            88:                    name = Phone; 
        !            89:                    valueClassName = NSString; 
        !            90:                }
        !            91:            ); 
        !            92:            attributesUsedForLocking = (EmpId, FirstName, LastName, Phone); 
        !            93:            classProperties = (EmpId, FirstName, LastName, Phone, Name, toProjects, toEmpProjects); 
        !            94:            externalName = EMPLOYEE; 
        !            95:            name = Employee; 
        !            96:            primaryKeyAttributes = (EmpId); 
        !            97:            relationships = (
        !            98:                {
        !            99:                    destination = EmpProject; 
        !           100:                    isToMany = Y; 
        !           101:                    joins = (
        !           102:                        {
        !           103:                            destinationAttribute = EmpId; 
        !           104:                            joinOperator = EOJoinEqualTo; 
        !           105:                            joinSemantic = EOInnerJoin; 
        !           106:                            sourceAttribute = EmpId; 
        !           107:                        }
        !           108:                    ); 
        !           109:                    name = toEmpProjects; 
        !           110:                }, 
        !           111:                {definition = toEmpProjects.toProject; name = toProjects; }
        !           112:            ); 
        !           113:        }, 
        !           114:        {
        !           115:            attributes = (
        !           116:                {
        !           117:                    columnName = PROJECT_ID; 
        !           118:                    externalType = int; 
        !           119:                    name = ProjectId; 
        !           120:                    valueClassName = NSNumber; 
        !           121:                    valueType = i; 
        !           122:                }, 
        !           123:                {
        !           124:                    columnName = PROJECT_NAME; 
        !           125:                    externalType = varchar; 
        !           126:                    name = ProjectName; 
        !           127:                    valueClassName = NSString; 
        !           128:                }
        !           129:            ); 
        !           130:            attributesUsedForLocking = (ProjectId, ProjectName); 
        !           131:            classProperties = (ProjectId, ProjectName, toEmployees, toEmpProjects); 
        !           132:            externalName = PROJECT; 
        !           133:            name = Project; 
        !           134:            primaryKeyAttributes = (ProjectId); 
        !           135:            relationships = (
        !           136:                {
        !           137:                    destination = EmpProject; 
        !           138:                    isToMany = Y; 
        !           139:                    joins = (
        !           140:                        {
        !           141:                            destinationAttribute = ProjectId; 
        !           142:                            joinOperator = EOJoinEqualTo; 
        !           143:                            joinSemantic = EOInnerJoin; 
        !           144:                            sourceAttribute = ProjectId; 
        !           145:                        }
        !           146:                    ); 
        !           147:                    name = toEmpProjects; 
        !           148:                }, 
        !           149:                {definition = toEmpProjects.toEmployee; name = toEmployees; }
        !           150:            ); 
        !           151:        }
        !           152:     ); 
        !           153: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.