• 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: Inheritance and relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance and relationships


  • Subject: Re: Inheritance and relationships
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 8 Aug 2008 09:49:34 -0700


On Aug 8, 2008, at 9:36 AM, Guido Neitzer wrote:

On 08.08.2008, at 10:27, Chuck Hill wrote:

SELECT <All Attributes> FROM contacts t0 WHERE (t0.inheritance_type = 'BaseUser' OR t0.inheritance_type = 'EventsUser')

Isn't AppUser a subclass of BaseUser too? Where is the qualifier for that?

That was only my example. EventsUser is the actual class in that case and for this application (I have also a MeetingsUser in a different app, same problem there).


...
10:11:00 -- ERXNSLogLog4jBridge -- :46 DEBUG - 4 row(s) processed

But it crashes when interpreting the results:

10:11:00 -- ERXDatabaseContextDelegate -- :153 INFO - Database Exception occured: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[EventsUser (java.lang.Long)10049]

That looks wrong. That should be the base class Person: _EOIntegralKeyGlobalID[Person (java.lang.Long)10049]





Is the row with PK 10049 and EventsUser?

events=# select inheritance_type, contact_id from contacts where contact_id = 10049; inheritance_type | contact_id
------------------+------------
EventsUser | 10049


Looks good.

On a reduced test case I can't reproduce the problem. I'm at a loss at the moment. Any ideas where I can look?


.Net?  :-P

It sounds like the snapshots are not getting created correctly. Other than that, no. I fear you are in for some hard work.

Seems so. That's what I'm guessing too, but I have no idea right now where to start looking. Probably I'll find something eventually, but if someone has a hint where I could start, that might save me some time.


Maybe Mike has some better ideas. I'd start with the hypothesis that either the snapshot is not getting recorded (maybe EOF is throwing an exception, swallowing it, and not recording the snapshot), or the snapshot is getting stored with the wrong GID. To test that, I'd start logging out what the EODatabaseContext has for snapshots.

Chuck



--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
  • Follow-Ups:
    • Re: Inheritance and relationships
      • From: Mike Schrag <email@hidden>
    • Re: Inheritance and relationships
      • From: Mike Schrag <email@hidden>
References: 
 >Inheritance and relationships (From: Guido Neitzer <email@hidden>)
 >Re: Inheritance and relationships (From: Lachlan Deck <email@hidden>)
 >Re: Inheritance and relationships (From: Guido Neitzer <email@hidden>)
 >Re: Inheritance and relationships (From: Guido Neitzer <email@hidden>)
 >Re: Inheritance and relationships (From: Chuck Hill <email@hidden>)
 >Re: Inheritance and relationships (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Inheritance and relationships
  • Next by Date: Re: Inheritance and relationships
  • Previous by thread: Re: Inheritance and relationships
  • Next by thread: Re: Inheritance and relationships
  • Index(es):
    • Date
    • Thread