javawebobjects

Building a qualifier to fetch a master/detail relationship in Enterprise Objects


This may sound crazy, but I have not been able to find an example in the literature on how to build a qualifier to fetch a master/detail relationship using EOF.

I could do it in SQL with my eyes closed. Now, I know I am not supposed to use primary or foreign keys, so what is the EOF solution? How do you build such a qualifier for a fetch?

Thanks in advanced for your answers.


Solution

  • If you need to set up fetch strategy, then have a look at http://webobjects.mdimension.com/javadoc/WebObjects/5.4/com/webobjects/eocontrol/EOFetchSpecification.html#prefetchingRelationshipKeyPaths()

    If you taking about "where" clause, then you should you qualifier.