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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
