You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by John McNally <jm...@collab.net> on 2001/10/24 18:28:46 UTC
Re: [Torque] Criteria don't specify table properly?
the constructor Criteria() sets the dbName to the default database. How
can it be null?
john mcnally
Peter Donald wrote:
>
> Hi,
>
> I noticed that
>
> Criteria crit = new Criteria();
> crit.add (ItemPeer.CATEGORY_ID,2);
> Vector v = ItemPeer.doSelect (crit);
>
> would fail if ItemPeer is not associated with non-default database. Would it
> be better that somewhere in ItemPeer.doSelect() that criteria had a setDbName
> that set it to db that the ItemPeer is associated with ? (or maybe only if
> dbName is null or something)
>
> --
> Cheers,
>
> Pete
>
> *--------------------------------*
> | Every rule has an exception, |
> | except the rule of exceptions. |
> *--------------------------------*
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org