You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Jens Mayer <je...@gmx.de> on 2007/08/20 19:56:39 UTC
lookup-failure
Hi,
I'm wondering about an error message:
"Can't perform lookup. There is more than one ObjEntity mapped to class
TmpAttredit"
This is the code (as simple as possible):
DataContext dataCtx = ....
SelectQuery query = new SelectQuery(TmpAttredit.class);
List result = dataCtx.performQuery(query);
The Mapping in the Modeler seems to be ok - nothing unusual here. The
exception is only firing for 2 of my 8 ObjEntity-classes.
what does this message means?
I'm using cayenne 2.0.2 with jdk 1.5.0_10 and Oracle 10.2.0.3.0
Thanks in advance
Jens
Re: lookup-failure
Posted by Mike Kienenberger <mk...@gmail.com>.
I'd guess the error means just what it says. You've got two
ObjEntities mapped to a class named TmpAttredit.
Try posting your datamap if you can't locate the problem yourself (but
a text search for TmpAttredit on the xml file should find the
problem).
On 8/20/07, Jens Mayer <je...@gmx.de> wrote:
> Hi,
>
> I'm wondering about an error message:
> "Can't perform lookup. There is more than one ObjEntity mapped to class
> TmpAttredit"
>
> This is the code (as simple as possible):
>
> DataContext dataCtx = ....
> SelectQuery query = new SelectQuery(TmpAttredit.class);
> List result = dataCtx.performQuery(query);
>
> The Mapping in the Modeler seems to be ok - nothing unusual here. The
> exception is only firing for 2 of my 8 ObjEntity-classes.
>
> what does this message means?
>
> I'm using cayenne 2.0.2 with jdk 1.5.0_10 and Oracle 10.2.0.3.0
>
> Thanks in advance
>
> Jens
>
>