on 1/9/2001 1:10 PM, "Colin Chalmers" <[EMAIL PROTECTED]> wrote:

> crit.add("LAST_NAME", "chalmers");

This is a common error that happens to me a lot.

This has to be the full TABLE.LAST_NAME. The reason is so that the Criteria
object can support joins across different table names. Therefore, I suggest
that you NEVER hard code the column names into your Criteria objects (also
so that you can change them and get compile errors which are easy to fix).
You should always point at the Peer's static column name String.

TurbineUserPeer.LAST_NAME

-jon

-- 
Honk if you love peace and quiet.



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to