Re: Can't perform lookup. There is more than one ObjEntity mapped to class

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon May 05 2008 - 04:34:34 EDT

  • Next message: Hans Poo: "Re: Can't perform lookup. There is more than one ObjEntity mapped to class"

    Umm, sorry you already said that you don't have doubly mapped class...
    So what environment are you using for deployment? I am wondering if
    there is some special ClassLoader setup involved.

    Andrus

    On May 5, 2008, at 11:28 AM, Andrus Adamchik wrote:
    > Hi Hans,
    >
    > This may be a genuine error (i.e. you do have two entities that are
    > mapped to the same Java class). Although the fact that it goes away
    > in 3.0 makes me wonder if there is a bug in 2.0.4 EntityResolver. In
    > 3.0 it is much more robust to various cross-ClassLoader and
    > arbitrary naming issues. So check that only one entity is mapped to
    > cl.mydomain.User class, and we'll go from there.
    >
    > Thanks,
    > Andrus
    >
    >
    > On May 3, 2008, at 5:01 PM, Hans Poo wrote:
    >> Hi,
    >>
    >> I'm getting the next error (using cayenne 2.04):
    >>
    >> Can't perform lookup. There is more than one ObjEntity mapped to
    >> class cl.mydomain.User.
    >>
    >>
    >> The model was created with the cayenne 2.04 modeler, and that is
    >> the tool i'am using for maintenance.
    >> Moreover i've checked the model manually, and the class isn't
    >> double mapped.
    >>
    >> Can anyone give me some help ?
    >>
    >> I've tried using 3.0 libraries, and the error don't show up.
    >>
    >> -- The problem is that i'am force to use 2.04 and can't move to 3.0
    >> --
    >>
    >> Atte
    >> Hans
    >>
    >> Open WebMail Project (http://openwebmail.org)
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon May 05 2008 - 04:35:07 EDT