Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
- Subject: Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
- From: Lachlan Deck <email@hidden>
- Date: Fri, 4 Feb 2011 13:06:13 +1100
On 03/02/2011, at 11:11 PM, Dev WO wrote:
> When I look at ERXModel, I only find
> er.extensions.ERXModel.useExtendedPrototypes
>
> I'm not sure that's what your talking about.
>
> Is this supposed to fix the SQL generation from EntityModeler or prevent the bug at runtime (when there's no external name for parent entity)?
>
> Xavier
>
> On 3 févr. 2011, at 12:39, Mike Schrag wrote:
>
>> I believe you have to opt in to erxmodel (which gives you erxentity).
You might want to try:
er.extensions.ERXModel.defaultEOEntityClassName=com.webobjects.eoaccess.ERXEntity
Take a look at ERXModel._addEntityWithPropertyList
- Essentially, ERXExtensions.defaultModelGroup is ERXModelGroup
- ERXModelGroup.addModelWithPathURL:
if (er.extensions.ERXModelGroup.patchModelsOnLoad is true) then
adds a new ERXModelGroup.Model which extends ERXModel
else if (er.extensions.ERXModelGroup.modelClassName != null) then
your model class should extend ERXModel
else you get ERXModel
- ERXModel._addEntityWithPropertyList should give you an ERXEntity by default.
with regards,
-
Lachlan Deck
_______________________________________________
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