• 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
Inherited Relationships using Different Destinations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inherited Relationships using Different Destinations


  • Subject: Inherited Relationships using Different Destinations
  • From: David Avendasora <email@hidden>
  • Date: Thu, 4 Sep 2008 10:25:56 -0400

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Inherited Relationships using Different Destinations
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: performance bottleneck
  • Next by Date: Re: Strange SQL Statement generated....
  • Previous by thread: Re: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation... does not contain value for attribute named NeededByEOF0 with snapshot key: NeededByEOF0 [SOLVED]
  • Next by thread: Re: Inherited Relationships using Different Destinations
  • Index(es):
    • Date
    • Thread