Fetching of derived attributes failes with vertical inheritance
Fetching of derived attributes failes with vertical inheritance
- Subject: Fetching of derived attributes failes with vertical inheritance
- From: Wolfram Stebel <email@hidden>
- Date: Mon, 19 Sep 2005 10:24:00 +0200
Hi specialists,
i have a huge data modell using vertical inheritance for several classes:
Base class is Businespartner
Derived are Mandant
Person
...
I try to use derived attributes in an attribute named "test_end":
1.
Here "test_duration" is an attribute of Mandant
DATE_ADD(businespartner.bupa_create_date, INTERVAL test_duration DAY)
2.
In this derived attribute "created" i use only the attributes of
Bussinespartner
DATE_ADD(businespartner.bupa_create_date, INTERVAL
businespartner.bupa_create_time HOUR_SECOND)
External type is NSTimestamp, internal is DATE for both of them.
I cant fetch Mandants anymore using a fetch spec because the derived
attribute 1 always failes, attribute 2 works.
The error message i get is:
com.webobjects.foundation.NSForwardException
[com.webobjects.jdbcadaptor.JDBCAdaptorException] 2005-09-28 of type
java.lang.String is not a valid Date type. You must use java.sql.Timestamp,
java.sql.Date, or java.sql.Time
On the other hand i still can say
mywodisplaygroup.queryMin ().takeValueForKey ( defaultFromDate, "test_end"
);
and qualify on it.
When i remove the "Class Property" (diamond) tick attribute 1 works also
with fetches!
Is there any understandable reason for this?
Should i send a bug report to apple?
TIA
Wolfram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden