Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Recovery of data whith MySql

nalimoussa

2006-12-19


Hi all,

I make a request in my dB MySql with a variable "date" :

PersistenceManager pm=JDOFactory.getInstance().getPM();
       pm.currentTransaction().begin();
       Collection c = (Collection)
pm.newQuery(SuiviTraitement.class,
"'date'=='"+date+"'").execute();     //(yyyy-mm-dd)
       pm.retrieveAll(c);
       pm.makeTransientAll(c);
       setListeTraitements(new ArrayList(c));      
       pm.currentTransaction().commit();

The recovery of data is made to a form JSp, I recover well the data
seized in the variable "date", (under the same format that in my data base)
but I do not find anything, it does not have there correspondence
somebody has an idea of problem ??

Thanks in Advance,

Regards,




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.