Hi James,

Thanks, That worked, Oddly enough that didn' happen to all the tables
without primary keys though.

Derick


----- Original Message -----
From: "James A. Hillyerd" <[EMAIL PROTECTED]>
To: "Turbine Torque Users List" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 1:10 PM
Subject: Re: Compile time error, criteria.or(c0); c0 unresolved


> Hi Derick,
>
> I bet the tables in which this is occurring do not have any primary
> keys, do they?
>
> I have a few tables that I had this problem with, they were all
> many-to-many relation tables.  I fixed it by making the two columns
> primary keys.
>
> -james
>
> On Fri, 2002-05-17 at 12:32, Derick wrote:
> > The error seems to occur in this function, in a few of the tables.
> >
> >     public static List retrieveByPKs( List pks, DBConnection dbcon )
> >         throws TorqueException
> >     {
> >         List objs = null;
> >         if (pks == null || pks.size() == 0)
> >         {
> >             objs = new LinkedList();
> >         }
> >         else
> >         {
> >             Criteria criteria = new Criteria();
> >             Iterator iter = pks.iterator();
> >             while (iter.hasNext())
> >             {
> >                 ObjectKey pk = (ObjectKey)iter.next();
> >                 SimpleKey[] keys = (SimpleKey[])pk.getValue();
> >                 criteria.or(c0);
> >             }
> >         objs = doSelect(criteria, dbcon);
> >         }
> >         return objs;
> >     }
> >
> >
> > ----- Original Message -----
> > From: "Derick" <[EMAIL PROTECTED]>
> > To: "Turbine Torque Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, May 16, 2002 9:07 PM
> > Subject: Compile time error, criteria.or(c0); c0 unresolved
> >
> >
> > > Hello,
> > >
> > > All the java classes and sql generate great, but when i try to compile
i
> > get
> > > the following error:
> > >
> > >     [javac]
> > >
D:\Projects\AMS\ServletSource\src\com\ams\web\om\BaseCellPeer.java:598:
> > > cannot resolve symbol
> > >     [javac] symbol  : variable c0
> > >     [javac] location: class com.ams.web.om.BaseCellPeer
> > >     [javac]
> > criteria.or(c0);
> > >     [javac]
^
> > >
> > >
> > > Thanks,
> > > Derick
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> --
> []  James A. Hillyerd <[EMAIL PROTECTED]> - Java Software Engineer
> []  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to