Re: Object with globalID could not be found in the database, when it is there ??
Re: Object with globalID could not be found in the database, when it is there ??
- Subject: Re: Object with globalID could not be found in the database, when it is there ??
- From: Chuck Hill <email@hidden>
- Date: Thu, 29 Nov 2007 17:40:27 -0800
On Nov 29, 2007, at 4:17 PM, Lachlan Deck wrote:
On 30/11/2007, at 4:28 AM, Chuck Hill wrote:
On Nov 29, 2007, at 3:11 AM, David Avendasora wrote:
On Nov 29, 2007, at 12:17 AM, Lachlan Deck wrote:
On 29/11/2007, at 6:57 AM, David Avendasora wrote:
On Nov 27, 2007, at 8:04 PM, Lachlan Deck wrote:
i.e., if you have a foreign key in super-entity which will
obviously not be a class property ... you have to mark it as a
class property in your sub-entities in order to allow EOF to
save the records properly etc.
Odd. What kind of issues does NOT having them marked as class
properties cause?
For me, EOF was attempting to assign the foreign key to the sub-
entity in the db/sql.
I have this in a few places in my model, but things _seem_ to
be working fine.
Are you using Vertical Inheritance. This is where I found this
bug lurking.
Ah, okay. I _had_ been using it, but Chuck relentlessly harassed
Harassed?!!? I thought it was more of brow beating. :-P
me into changing it, and I just don't have the will power to
resist him.
Aren't you glad, now that you see Laclan's bug list?
What List?
I've no bugs related to VI currently. The bug (singular) I
mentioned took some experimenting to find the cause/work-a-round,
granted, but it's squashed so far as I'm concerned, FWIW.
Secondly, I did indeed create a bug report on this (in radar, 21st
May '07) months ago with all the gory details :-) See:
- 5219252 'EOF fails to generate foreign key in sql (vertical
inheritance)'
And, while you're at it, here's some other bugs that have been
sitting there (possibly unattended) for a while:
- 5216416 'EOModel Bundle reference improvement: Protocols'
- 5216407 'EOModel Bundle inheritance improvement'
- 5608505 'EOF many to many between data stores fails to generate
correct sql'
- 5427988 'EOQualifier operatorSelectorForString docs or
implementation are wrong?'
- 4789381 'JavaFoundation's KVC takeValueForKey dependancy on
overload method order'
Was what I had in mind, though looking at it, your are right that
only one is VI based for certain.
And as for performance, I'm also happy. Good indexing helps.
So do fewer joins. YMMV.
Any bugs I've mentioned, FWIW, in recent times have surfaced when
switching over to Wonder. It solved some EOF subtleties, and
introduced others of its own seemingly. Or really there's only two
outstanding bugs for me: (a) strange pessimistic locking bug that
I'm about to dig into, though I'm not using pessimistic locking,
That is usually some bad type info in jdbc2info or a modelling issue.
Chuck
and (b) ERXEC auto-unlocking when an exception is thrown during /
wa/. Though I've put in some code to minimise that possibility. So
I ask again... what list? :)
--
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
References: | |
| >Object with globalID could not be found in the database, when it is there ?? (From: Owen McKerrow <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Anjo Krank <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Owen McKerrow <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Xavier Destombes <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Simon McLean <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Owen McKerrow <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Lachlan Deck <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: David Avendasora <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Lachlan Deck <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: David Avendasora <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Chuck Hill <email@hidden>) |
| >Re: Object with globalID could not be found in the database, when it is there ?? (From: Lachlan Deck <email@hidden>) |