Re: EntityResolver moved to "map" package

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Apr 14 2004 - 12:24:17 EDT

  • Next message: Mike Kienenberger: "Re: PoolManager for a DataContext or DataObject?"

    Good point. I did it late at night yesterday, so I overlooked the
    obvious thing. I will change the code to make access.EntityResolver a
    superclass.

    Andrus

    On Apr 14, 2004, at 12:20 PM, Mike Kienenberger wrote:

    > Andrus Adamchik <andru..bjectstyle.org> wrote:
    >> FYI: just moved EntityResolver class from "access" to "map" package,
    >> with deprecation and all... Since it affected quiet a few classes
    >> including Data Views, I figured I'd post a note.
    >
    > Unfortunately, the deprecation doesn't work unless you make "access" a
    > superclass of "map".
    >
    > As it is now, the error "Type mismatch: cannot convert from
    > org.objectstyle.cayenne.map.EntityResolver to
    > org.objectstyle.cayenne.access.EntityResolver" pops up wherever a line
    > such
    > below appears.
    >
    > EntityResolver anEntityResolver =
    > aDataContext.getEntityResolver();
    >
    > Not a problem for me since I'm just going to correct the deprecation,
    > but it
    > may cause problems for others who want to just drop in the new jar file
    > without changing the code and recompiling.
    >
    > -Mike
    >



    This archive was generated by hypermail 2.0.0 : Wed Apr 14 2004 - 12:24:22 EDT