Hi all,

I have two Single-Table Inheritance structures in my application:

Part
-Intermediate
--Finished

LotCode
-ManufacturedBatch
--ManufacturedPart

Currently I have the relationships modeled as:

Part<->>LotCode (relationship named "lotCodes()")
Intermediate<->>ManufacturedBatch (relationship is still called "lotCodes")
Finished<->>ManufacturedPart (relationship is still called "lotCodes")

The thing I just noticed is that in my generated _Entity.java classes there is no lotCodes() method defined because the EOGenerator template skips it due to being inherited. Which makes sense, but is not what I want.

So the generated code does not _really_ agree with the EOModel.

The app seems to work just fine up to now because I've never expected the lotCodes() relationship on an Intermediate to return an instance of ManufacturedBatch.

But now I do.

I just want to know if it is legal from an EOF standpoint to have an inherited relationship to have a different (yet child) destination entity before I go modifying my EOGen templates. I can't really see why it wouldn't be legal.

Thanks!

Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to