• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fetching of derived attributes failes with vertical inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching of derived attributes failes with vertical inheritance


  • Subject: Re: Fetching of derived attributes failes with vertical inheritance
  • From: Wolfram Stebel <email@hidden>
  • Date: Mon, 19 Sep 2005 15:14:00 +0200

Hi all,

manually creating a qualifier and fetchspec, then qualifying, works.
But i cant use a wodisplaygroup on this entity any more, it allways fails
with the derived attribute, i tested several thousand setup permutations....
:-) .
This is not a problem so far, but i appreciate any solution for this issue.

Wolfram

> 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
>

Dipl. Inform. Wolfram Stebel, bugs&errors
Flutgrabenstr. 19, 35576 Wetzlar
Tel. 06441/47633
Mailto:email@hidden
Web: www.bugs-and-errors.de
> 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

References: 
 >Fetching of derived attributes failes with vertical inheritance (From: Wolfram Stebel <email@hidden>)

  • Prev by Date: Passing an EOGenericRecord Refrence in a Direct Action
  • Next by Date: Re: Child Parent Editing Context
  • Previous by thread: FW: Fetching of derived attributes failes with vertical inheritance
  • Next by thread: Passing an EOGenericRecord Refrence in a Direct Action
  • Index(es):
    • Date
    • Thread