Re: Problem with VelocityGen and $fetchSpecification.isFetchEnterpriseObjects

From: Mike Schrag (mschra..dimension.com)
Date: Mon Jan 28 2008 - 17:59:58 EST

  • Next message: Pierce T. Wetter III: "Re: New EOGenerator templates section on the Wiki"

    What build of Eclipse and WOLips are you using? The definition of
    that method is pretty damn simple -- return rawRowKeyPaths == null;
    Maybe it's picky about the "is" in Velocity and you have to instead
    use !$fetchSpecification.fetchEnterpriseObjects ?

    ms

    On Jan 28, 2008, at 5:37 PM, John Huss wrote:

    > I think there may be a problem with the isFetchEnterpriseObjects
    > method for EOEntity using the Velocity generator.
    >
    > I have some template logic to handle raw rows vs EOs. The raw row
    > fetches are generating fine, but the regular EO ones aren't. For
    > example, for one plain EO fetch the following template produces this
    >
    > TEMPLATE PORTION:
    >
    > #if (!$fetchSpecification.isFetchEnterpriseObjects)
    > /**
    > * RAW ROW KEY PATHS:
    > #foreach ($keyPath in $fetchSpecification.rawRowKeyPaths)
    > * ${keyPath}
    > #end
    > */
    > #end
    >
    > RESULT:
    >
    > /**
    > * RAW ROW KEY PATHS:
    > */
    >
    > So the expression $fetchSpecification.isFetchEnterpriseObjects is
    > evaluating to false incorrectly when the fetch really does fetch
    > EOs. For the raw fetches I've verified that "rawRowKeyPaths"
    > returns the correct paths.



    This archive was generated by hypermail 2.0.0 : Mon Jan 28 2008 - 18:00:48 EST