//sorry,the code should be:
Criteria crit = new Criteria();
crit.addAscendingOrderByColumn(MydataPeer.SORT_VALUE);  
Vector v = MydataPeer.doSelect(crit,dbConn); //use db connection
The table is not empty in database,but the "v" is null,why?

If I modify the line of 3  as following
Vector v = MydataPeer.doSelect(crit); //don't use db connection
The code worked,why?

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to