thanks .. that worked :)

Hi!

Never persist search results: persist the parameters. ;)
Besides that, I'd remove the transactions field and make the getTransactions() method look like this:

public List<Transaction> getTransactions() {
return (List<Transaction>) theSession.createCriteria(Transaction.class)
        .add(Restrictions.eq("msisdn", userInfo.getMsisdn()))
.add(Restrictions.not(Restrictions.in("transactionType", INVALID_TRANSACTION_TYPES)))
        .add(Restrictions.ge("transactionDate", startDate(fromDate)))
        .add(Restrictions.le("transactionDate",  endDate(toDate)))
.add(Restrictions.ge("partitionDate", Integer.parseInt(tformatter.format(fromDate)))) .add(Restrictions.le("partitionDate", Integer.parseInt(tformatter.format(toDate))))
        .addOrder(Order.asc("id")).list();
}



--
*Jose Luis Sanchez*
Senior Developer

*E-mail*: joseluis.sanc...@m-centric.com
*Phone* : +34 91 277 03 16
mCentric mobilising imagination


c/ Jose Echegaray, 8 Building 3
28230 Las Rozas (Madrid). SPAIN.

This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to