메일링 리스트 webobjects-dev@wocommunity.org 메시지 #473
보낸 사람: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
제목: [Q] - EOQualifier based on object's class/entity?
일자: Thu, 24 Aug 2023 12:30:54 +0200
받는 사람: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
서명된 데이터 (Text SHA256)
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 to 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’s 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 there a better more elegant way?

Probably more of academical interest.....

---markus---

내용 변경이 없음이 보증됨:
<markus.ruggiero@rucotec.ch>
가입 (FEED) 가입 (DIGEST) 가입 (INDEX) 탈퇴 Listmaster에게 메일 보내기