X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.9/27010) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from [40.107.244.89] (HELO NAM12-MW2-obe.outbound.protection.outlook.com) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 31212691 for webobjects-dev@wocommunity.org; Fri, 25 Aug 2023 01:43:33 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=40.107.244.89; envelope-from=Ramsey.Gurley@practicemojo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l6mpbd1m75EPxfrDXJJgkv+ccgUdzFxDmQf4v4amGg0iAX5VMW09ZSuEmxmRbi3mBfc0R0ddR923meLGun3rawJn8PnXdVwgBue5S2DCngoPRepXXhT+Te7nS84+a9hOxw+N3xdxHWW7qXpBdXRcOB7n9F90kGaj0I7zd45wfg7+guJ/ju9gw7cJHJ3HnpM3OThkaoYfV5fL1a2S6s0DNMXtGiVbLYALEEXM2FQsTDb8UTyjDXjAzNZWd0JyXNANXTYjFiWuq4t4DRicWrPdFe86xpSLCc8v/itNh8/HnnnThNPo3sKQgd4fHGHhvgjLSFUf13G3wmgYE4F5oT170Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SYbCUfxjrSssNFAj9G+5S/RlI9B+Eg8LmsORLyN8cZU=; b=KfIlvASAiz/uzk7ZU4DhbhbeEOEd0kG4Qb8ljT8HvdAd9cQzSIICtoSd6s1A82kKUiamwfevHDtLcaeaYRjtLO6oO8XfBfi9SC75452eeik1KGIseRNNcPSFMd5vMkm5mRhZ/tHcnKnl/uG+eHakgfxI4Nn9MVGJK6cD6GZBjmuUCfdXTjQ1B6/SxlnniWi5RZPEkhOtYlELTfnjaau/QyEyz9NWkyKLlpn/VsKEKeGLMzyoasoeB6wT0Fw3PNrXE+lxgdyJZM2WxT/uT6yBj6SnTPvuMS60dn7zYFaeQ987PqriT1kFLga2PKS9u2ScKEJ4m6xBlscKjOg3jBsP9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=practicemojo.com; dmarc=pass action=none header.from=practicemojo.com; dkim=pass header.d=practicemojo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prositesinc.onmicrosoft.com; s=selector2-prositesinc-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SYbCUfxjrSssNFAj9G+5S/RlI9B+Eg8LmsORLyN8cZU=; b=IuLi8ouGhRq40yzVHY+t3+rKxIg7u3ZeadlFG19m0SKxX5XjvVKriLZl8R7YPgSmVlOuAomPFDokboDRqEmC3zj9qCCd4wYh0Ta9lmmMB6a3zFC6OG+0OBFdcGTq6eIUndEu5+1kvsqvsPVs1GKJqToZAFOmgz9xFVIXaLktkf8= Received: from BYAPR18MB2534.namprd18.prod.outlook.com (2603:10b6:a03:12e::29) by PH7PR18MB5131.namprd18.prod.outlook.com (2603:10b6:510:15a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Thu, 24 Aug 2023 23:43:08 +0000 Received: from BYAPR18MB2534.namprd18.prod.outlook.com ([fe80::b49d:9d24:e94:6cea]) by BYAPR18MB2534.namprd18.prod.outlook.com ([fe80::b49d:9d24:e94:6cea%3]) with mapi id 15.20.6678.025; Thu, 24 Aug 2023 23:43:07 +0000 From: Ramsey Gurley To: WebObjects & WOnder Development Subject: Re: [WO-DEV] [Q] - EOQualifier based on object's class/entity? Thread-Topic: [WO-DEV] [Q] - EOQualifier based on object's class/entity? Thread-Index: AQHZ1nYqPtE1JA0CpkK5f3+Q3M3vga/6HIOT Date: Thu, 24 Aug 2023 23:43:07 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=practicemojo.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR18MB2534:EE_|PH7PR18MB5131:EE_ x-ms-office365-filtering-correlation-id: 73c5847c-6551-444f-5a17-08dba4fbde5e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wpQGpunoJpY0aN7vlru6HrW3o8qq+rjzmUV7lniNm2orwF2LnIfnuZ6KS94VpruZXL4bL8ebjIJdOt55NjkNS+0rh7xhO4t/SF2pZEYxlwvvxOFlO5Nh/6hjn1G2Vq7LC2PzUmjgy9XRfpNrMo11HTFL6cUcjPt5U5tpGavKkvdg2fAlvtucMVH7DeEC6Gisso2/qYGVNkEDVIUPbp/hvbuzSXH8F6NU3Rx9INRrVNHtgAtA0eSo2j7NODb8WUNmQLifW5ITUFlhny028SN3AGC2uHmHwovjxqU7jtnfS4Bcr5Sy3EBPqhIENHJfn2Yql4xwYygDOx/Hcl2EQTiPXNBrovg0yZ+QeMkGqXcUQCX2lBhBeVaXMIKueoAygnuuyMq9V3saIG/BRYRCY/5/PC3JDjQuc0YuFW8Syin20y2Jl8CyANzv9e2SPs/Qk1gERNIIXmO65GHFTKJNexcivXuBuxHCN4oZpd4JSmelNuHKDcK5lHLq2pp1uiCL51B6TSSvj7CN3t65qxoxRGyOzRJKzNIHw4NYgZ/kKVNJmy69CPX+8f/csLB1TUYu1EGRxTDnKvGcg+7hBbIHr+vfuypxQPqrLJ2Ks++AfsZJm6o= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR18MB2534.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(396003)(39850400004)(366004)(376002)(1800799009)(451199024)(186009)(19627405001)(83380400001)(9686003)(26005)(508600001)(55016003)(5660300002)(52536014)(966005)(2906002)(8936002)(166002)(8676002)(66899024)(38070700005)(38100700002)(122000001)(6916009)(66476007)(66556008)(66946007)(76116006)(91956017)(86362001)(71200400001)(64756008)(41300700001)(7696005)(6506007)(53546011)(66446008)(33656002)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?s0PXSYw4U0dcknv9LYrVeBc6b9kgYnSTpyA/C5pD2tmuHDQ5BggIjov5?= =?Windows-1252?Q?ZZXKXQioaGorJHe7pIgLMPh6NgYEHUDn+bkcEMsG0++X8XyWiEmtPD87?= =?Windows-1252?Q?IQh9MZuZLqkMIO4kP0X9nyy/7dYWWKtIt6Ddfk+edxfc0OfvZxNRP5Cn?= =?Windows-1252?Q?TDs9sSztL9aTYmZChftTXv2rZ4Wc+ADluURaVxeYYpRcjrq1oXzFq88A?= =?Windows-1252?Q?eiip0ZVgRHRg0hhbdGHZJks09QDEetYjhL3ReC8gZi2EBP2/S845OkyS?= =?Windows-1252?Q?lSvfmS6/yNlH6k7JLYdJV6rvVPbh9QKUWE6oVp7L1Oq62vMlA4auYDVD?= =?Windows-1252?Q?+mo7op7xBTSmy9AINcP+IfsY3ttxKTZhJobyEKeUYZtAzOyALOFf19XJ?= =?Windows-1252?Q?hGjL9JRWGrWOcrcUTy3sUNh9jPASv7fVs8dSHWSvDvJwvk8t5OTFcf1/?= =?Windows-1252?Q?CzusPl6pZV9T3NgQDrSQkXoXPr7yz8jfdXZT4dr9Sriki0EPQguisftZ?= =?Windows-1252?Q?RbGEbjmYaUQ4h/G7lYiq8xBOXtUwr5/qlyJhxx69pygl7hiuP967HRon?= =?Windows-1252?Q?1OMQd94fdVIlMKdXpDFgAxnoZhgyCGI23qmtn8oGAyPhChbifp3KKDp9?= =?Windows-1252?Q?Ju0AiM7Z2/u7jVMzXuw2ZUmKNORvkDc4vDBHywQVqcR9wibtfA/zI4G5?= =?Windows-1252?Q?nPA1gfJxm0un9gmzq0Pmaihu9DaXG4LUqN1IFF5dBkyJOboXw6AZn+Fv?= =?Windows-1252?Q?F7iha8yUqaAtCxcWFmU5IyFtqj+5noCF1a5ZoYWwBaUdP2UFOcmmwmcq?= =?Windows-1252?Q?xkxWaaE86P69/QKei9q6uuVM3f0Km8KHtia85vSKR/H0BJBRKscJH4J9?= =?Windows-1252?Q?UhtiNhScEjevW6JGjkZa5J/tfKnzJ0Dep6ShVZA0sEfxBIGFeDzIfnY+?= =?Windows-1252?Q?Q3rcjWKiq2HhwwwYy6CFOO6YZ5q+fu63K6SIl4d76TIAGV3qDeg83IE8?= =?Windows-1252?Q?5z674G0zHgI/UCWSDoZ/A5XY0Zxq1ht5cLw7g0N0+NIZC/6BYu0QF7Pm?= =?Windows-1252?Q?9OXR/MlYR/jZ+E7+Se7SulObC7eRIo2uikAkynSrtMMsM1/Lhoe0jXkQ?= =?Windows-1252?Q?WG48KqEWx0/4DXnnBOmBDfXG1/XrgyNHec01AJXKsIMKQl2cbNXN3jjd?= =?Windows-1252?Q?YNjcaKEZYiWWXflDdGHkoiOIMhzHVt5DqRJwvoV7Kh/OZj7PmKb8d4fD?= =?Windows-1252?Q?s6DpVdq4e7pGdCJznzcYV5JJnRETrwCoWArOd0bfEEXKE4JPvAfJvXFz?= =?Windows-1252?Q?jcRjEjb3Wz/+aQ0rajhgFfSddoDnhOpho9TJ06p6agxUkfpIW1BLWJH+?= =?Windows-1252?Q?kxp7SAdnPd5dSXO3gGQKtNmII+K2IP81fCndeMmd8w2er7f/FsAaJh7M?= =?Windows-1252?Q?G3gSN0u13kA1feuCZkdAO7eAF7l2j/SJIkgF+michO4epKyu4g5wJW97?= =?Windows-1252?Q?SP6/meVKRQE37t7ilKJE5nELmB7NqYqz8UBkufleI3SgsNlwWgbMrnma?= =?Windows-1252?Q?Czm+0t+tFkEuSRiVFk9MTdzFzQiafsubdUCn+bb29r4bml/Kt/qIfYof?= =?Windows-1252?Q?f0bTNJUGXi3oftO5BLMZ7z5L8Ljaruk+G+B7B5HupcXrcV/+tNKJeEEQ?= =?Windows-1252?Q?TedhA0h7EjtadrhZ8ex1vewrSqWzekxLUcvd+RiaOhibzPdwh33aOg?= =?Windows-1252?Q?=3D=3D?= Content-Type: multipart/alternative; boundary="_000_BYAPR18MB253439058190B035CBD378C0861DABYAPR18MB2534namp_" MIME-Version: 1.0 X-OriginatorOrg: practicemojo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR18MB2534.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73c5847c-6551-444f-5a17-08dba4fbde5e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Aug 2023 23:43:07.7043 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: de0a5129-99d3-4d35-a928-09047a134775 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4TE798GJc7y1VWFs2c+xAIwr2nXCweZ2s9cYYV8TcFzug8CX62aXnShSwDTkzjy4Vwyq2ZQms2TIVKNWJIOBy0eTDxwdbakcilaTUnlygqE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5131 --_000_BYAPR18MB253439058190B035CBD378C0861DABYAPR18MB2534namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Have you tried setting isDeep to false? https://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/e= ocontrol/EOFetchSpecification.html#setIsDeep(boolean) ________________________________ From: WebObjects & WOnder Development on behalf of Markus Ruggiero (rucotec= ) Sent: Thursday, August 24, 2023 7:30 PM To: WebObjects & WOnder Development Subject: [WO-DEV] [Q] - EOQualifier based on object's class/entity? I have a hierarchy of entities like so: A is the super entity, B extends A (A is not abstract) I have records in the database representing objects of both types. Creating qualifiers for any value is easy with ERXKey. But what if I want t= o limit the query to only A objects or only B objects? The problem here is = that all Bs are also As. Filtering As might thus also return some B objects= . I would want to create a qualifier based on the object=92s absolute class. Currently I handle this by including the qualifying field for the classes (= single table inheritance). This works but seems to be kind of ugly. Is ther= e a better more elegant way? Probably more of academical interest..... ---markus--- ________________________________ Confidentiality Notice: This email, including all attachments and replies t= hereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C.= Sections 2510-2521 and are legally privileged. This information is confide= ntial, and intended only for the use of the individuals or entities named a= bove. If you are not the intended recipient, you are hereby notified that a= ny disclosure, copying, distribution or the taking of any action in relianc= e on the contents of this transmitted information is strictly prohibited. P= lease notify us if you have received this transmission in error. Thank you. --_000_BYAPR18MB253439058190B035CBD378C0861DABYAPR18MB2534namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Have you tried setting isDeep to false?




From: WebObjects & WOnder Development on behalf of Markus Ruggie= ro (rucotec)
Sent: Thursday, August 24, 2023 7:30 PM
To: WebObjects & WOnder Development
Subject: [WO-DEV] [Q] - EOQualifier based on object's class/entity?

I have a hierarchy of entities like so:
A is the super entity, B extends A (A is not abstract)
I have records in the database representing objects of both types.

Creating qualifiers for any value is easy with ERXKey. But what if I want t= o limit the query to only A objects or only B objects? The problem here is = that all Bs are also As. Filtering As might thus also return some B objects= .

I would want to create a qualifier based on the object=92s absolute class.<= br>
Currently I handle this by including the qualifying field for the classes (= single table inheritance). This works but seems to be kind of ugly. Is ther= e a better more elegant way?

Probably more of academical interest.....

---markus---


Confidentiality Notice: This email, including all attachments and= replies thereto, are covered by the Electronic Communications Privacy Act,= 18 U.S.C. Sections 2510-2521 and are legally privileged. This information = is confidential, and intended only for the use of the individuals or entities named above. If you are not the= intended recipient, you are hereby notified that any disclosure, copying, = distribution or the taking of any action in reliance on the contents of thi= s transmitted information is strictly prohibited. Please notify us if you have received this transmission in err= or. Thank you.
--_000_BYAPR18MB253439058190B035CBD378C0861DABYAPR18MB2534namp_--